[Lazarus] CHM help package
Marco van de Voort
marcov at stack.nl
Tue Dec 12 21:19:08 CET 2017
On Tue, Dec 12, 2017 at 04:03:17PM +0100, Werner Pamler via Lazarus wrote:
> >> should go there independently of how this story ends here. I have
> >> commit rights to Lazarus and can put it there. Any objections?
> >
> > Why not to use TEncoding provided with FPC 3?
>
> This is not the point. chm stores a Windows LCID to identify which
> codepage is used for index and table of contents within the chm.
> Therefore, LCID and codepage must be mapped to each other. This is what
> Sergey's unit lcid_conv does. TEncoding does not have anything to do
> with LCID.
No, but afaik an tencoding to lcid mapping would allow to convert?
> I am no longer sure if it really fits into LazUtils because as I
> understand now the unit is needed also for writing - no it should be
> with the other chm units in (fpc)/packages/chm.
If it can be sufficiently clean (just the plain wrappings and maybe a
converter helper), it could be stuffed in rtl-unicode. CHM is probably not
the only thing that uses LCIDs.
More information about the Lazarus
mailing list