Re: Rendering issues with Finnish Umlauts in FinPR

Tobias Klein <[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <[email protected]>
Thank you for taking the time to test and even module rebuild, Kristof!

Now we know!

I am puzzled though what did the trick in Xiphos.

Regarding Greg's question:
There is no dynamic setting of the encoding in Ezra, the only thing I have 
is the encoding in the index.html file - which is set to Unicode. The rest 
is the rendering work of the Chromium engine (both on Desktop and Android).

Best regards,
Tobias

Am 22. Januar 2023 00:17:02 schrieb Kristof Szabo <kristof.szabo-S0/[email protected]>:
> I managed to get Ezra running (it was some libicu70 mess), and yes, the 
> accented characters in this module are broken (as other modules accented 
> characters are OK; I assume it is not a font issue). I tried the conf file 
> change, but it didn't work either.
>
> The mitigation was to rebuild the module, mod2osis leaves some garbage in 
> the OSIS, but that would be easy to clean, anyway osis2mod is possible with 
> this garbage left in and tada we have a proper accents.
>
>
>
> As the module was updated last only 3,5 yrs ago I assume the maintainer is 
> still active, ie. they can be reached.
>
> Or I can have a look too, the challenge is, that such a module rebuild can 
> open pandora's box, if I run some tests 
> (https://github.com/krisek/sword-test) or David checks them, then for sure 
> there will be some issues. I'm happy to fix some of them, but I definitely 
> do not speak Finnish, so I'm not sure this would be a responsible action. 
> If Dom gives me the go I can fix syntax & submit, but I don't want to end 
> up in the rabbit hole :) Best would be to reach out to the original maintainer.
>
> Kind regards,
> k-
>
>
>
>
>
>
>
>
>
> On Sat, Jan 21, 2023 at 8:26 PM Greg Hellings <[email protected]> wrote:
> Is Ezra properly setting encoding on the content it renders? Is it maybe 
> setting a font that doesn't have the proper code points?
>
> --Greg
>
>
> On Sat, Jan 21, 2023, 13:12 Tobias Klein <[email protected]> wrote:
> Hi Kristof, David,
> Adding Encoding=UTF-8 to the module conf file ~/.sword/mods.d/finpr.conf 
> does not solve my issue.
> The text still looks the same as before ...
> What else could I do to further debug this?
> Best regards,
> Tobias
> On 1/21/23 5:18 PM, Kristof Szabo wrote:
>> Hi Thomas,
>>
>> I suppose the problem is that finpr.conf contains no encoding information 
>> (check the Hun* modules for reference), and if there is nothing specified 
>> Latin-1 is the default. mod2osis (shouldn't be used !! :)) shows that the 
>> module is in UTF-8, so there is a misalignment.
>>
>> https://wiki.crosswire.org/DevTools:conf_Files#:~:text=Plaintext-,Encoding,-UTF%2D8%0AUTF
>>
>> Kind regards,
>> Kristof
>>
>> On Sat, Jan 21, 2023 at 4:49 PM David Haslam <dfhdfh-g/[email protected]> wrote:
>> Hi Thomas,
>>
>> What about other Finnish modules?
>> eg. FinPR92, FinRK, FinSTLK2017
>>
>>
>> Presumably you already tested (eg) German modules and found that umlauts 
>> and eszett are both rendered aright?
>>
>> Btw. FinPR renders aright in PocketSword (iOS/iPadOS).
>>
>> David
>>
>> Sent from Proton Mail for iOS
>>
>>
>> On Sat, Jan 21, 2023 at 15:25, Tobias Klein <[email protected]> wrote:
>>> Hi,
>>>
>>> When retrieving the text of the FinPR module I am getting some rendering 
>>> issues with the Finnish Umlauts. This is based on a user's problem report.
>>>
>>> Romans 5:8 returns like this in node-sword-interface / Ezra:
>>> Mutta Jumala osoittaa rakkautensa meit? kohtaan siin?, ett? Kristus, kun me 
>>> viel? olimme syntisi?, kuoli meid?n edest?mme.
>>>
>>> While it should like like this (rendered text copied from Xiphos):Mutta 
>>> Jumala osoittaa rakkautensa meitä kohtaan siinä, että Kristus, kun me vielä 
>>> olimme syntisiä, kuoli meidän edestämme.
>>>
>>>
>>> This occurs both on Linux and macOS (have not tested on Windows yet).
>>> Any pointers what could be the root cause? I generally have not observed 
>>> rendering issues with other modules.
>>>
>>>
>>> Best regards,
>>> Tobias
>> _______________________________________________
>> sword-devel mailing list: [email protected]
>> http://crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>> _______________________________________________
>> sword-devel mailing list: [email protected]
>> http://crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
> _______________________________________________
> sword-devel mailing list: [email protected]
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
> _______________________________________________
> sword-devel mailing list: [email protected]
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
> _______________________________________________
> sword-devel mailing list: [email protected]
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

_______________________________________________
sword-devel mailing list: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.