help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] Re: How fix (non-fatal) error by producing .fo (by fo


From: Patrice Dumas
Subject: Re: [help-texinfo] Re: How fix (non-fatal) error by producing .fo (by fop) from .docbook from .texi about missing entities?
Date: Sun, 27 Feb 2011 13:37:15 +0100
User-agent: Mutt/1.4.2.2i

On Sat, Feb 26, 2011 at 11:07:55PM +0000, Oleksandr Gavenko wrote:
> 
> In that way we can convert .texi to UTF-8 and make replace for chars:
> 
>   © ==> ©
>   “ ==> “
>   ” ==> ”
>   ‘ ==> ‘
>   ’ ==> ’
>   ⇒ ==> →
> 
> I think sources contain more entities that require rewriting.

Ok.  I think those conversions to unicode characters are already right,
then.  Just need to ensure that they are done like that.  You can have a 
look to tp/Texinfo/Convert/Unicode.pm for example, there are tables for
accented characters commands, and also unicode_map for commands.  There
is also code to convert `̀` and '' to the corresponding unicode and then
utf8 characters:

    $text =~ s/---/\x{2014}/g;
    $text =~ s/--/\x{2013}/g;
    $text =~ s/``/\x{201C}/g;
    $text =~ s/''/\x{201D}/g;

-- 
Pat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]