On 28 June 2011 15:33, Gabriel PREDA <gabriel.pr...@gmail.com> wrote:
> Hi Richard,
> As far as my tests went (I do not have a MS Windows system arround)...
> I would go with conversion (for the TOC only) to ASCII with TRANSLIT.
> [eRadical@eRadical ~]$ cat a.php
> <?php
> echo "ă â ș ț î" . PHP_EOL;
> echo iconv("UTF-8", "ASCII//TRANSLIT", "ă â ș ț î") . PHP_EOL;
> [eRadical@eRadical ~]$ php a.php
> ă â ș ț î
> a a s t i
> I believe this is the best for TOC for romanian.
> There is not impediment in reading such a TOC.
>
> Regards,
> Gabriel PREDA
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Certified Scrum Master
> Zend Certified Engineer
> Sun Certified MySQL Associate
> Fedora Ambassador
> Senior Web-Applications Developer
>
>
>
> On Tue, Jun 28, 2011 at 12:13 PM, Richard Quadling <rquadl...@gmail.com>
> wrote:
>>
>> Hello to you both.
>>
>> I'm forwarding this message to you as you are both active in the
>> respective translations and I've not signed up yet (doing so now).
>>
>> If you could reply to the phpdoc thread to keep everyone informed,
>> that would be great.
>>
>> Regards,
>>
>> Richard.
>>
>>
>> ---------- Forwarded message ----------
>> From: Richard Quadling <rquadl...@gmail.com>
>> Date: 27 June 2011 17:29
>> Subject: The Table Of Contents for Windows CHM files.
>> To: PHP Documentation List <phpdoc@lists.php.net>, php-windows
>> <php-wind...@lists.php.net>, php-doc...@lists.php.net,
>> php-doc...@lists.php.net
>>
>>
>> Hello all.
>>
>> The Windows CHM files are built weekly and all output from the various
>> processes are logged accordingly.
>>
>> When building the fa and ro translations, there are some issues with
>> the code that generates the table of contents for the CHM file.
>>
>> In essence the UTF-8 text being incorporated into the TOC has to be
>> translated to a particular codepage (Windows-1254 for fa and
>> Windows-1250 for ro).
>>
>> Unfortunately, these codepages don't contain all the symbols required
>> for the original text and a log entry is created saying ...
>>
>> "[08:45:59 - E_NOTICE              ]
>> C:\pear\phd-trunk\phpdotnet\phd\Package\PHP\CHM.php:263
>>        iconv(): Detected an illegal character in input string".
>>
>> This is as expected based upon
>> http://docs.php.net/manual/en/function.iconv.php (out_charset
>> parameter) ...
>>
>> "The output charset.
>>
>> If you append the string //TRANSLIT to out_charset transliteration is
>> activated. This means that when a character can't be represented in
>> the target charset, it can be approximated through one or several
>> similarly looking characters. If you append the string //IGNORE,
>> characters that cannot be represented in the target charset are
>> silently discarded. Otherwise, str is cut from the first illegal
>> character and an E_NOTICE is generated."
>>
>>
>> I think the codepage for fa is wrong (based upon
>> http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx) and that it
>> should be Windows-1256 - it made no difference to the output in terms
>> of notices.
>>
>>
>>
>>
>> Is there a more appropriate codepage to be used? (I don't think so)
>>
>> Should we be using //TRANSLIT//IGNORE? (I don't think so but may have to),
>>
>> Or, for these 2 languages, should we use the English data (purely for
>> the CHM TOC, Search and index tabs).
>>
>> If you have a native language CHM file for any purpose where the TOC
>> correctly shows your native language, then I could see how this has
>> been put together and make appropriate corrections (if possible).
>>
>> As things stand though, it looks like the Windows CHM viewer has
>> certain limitations to the codepages it will support as part of the
>> TOC, search and index.
>>
>> Richard.
>>
>> --
>> Richard Quadling
>> Twitter : EE : Zend : PHPDoc
>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>>
>>
>>
>> --
>> Richard Quadling
>> Twitter : EE : Zend : PHPDoc
>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>
>

Thanks for that.

I'll do some testing any send you a few screen shots of the TOC,
search and index for your approval.

Richard.

-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

Reply via email to