My latest idea is a mixed strategy:

I know the critical parts of the layout, where hyphenation is essential for 
responsiveness and at the same time, weewx labels are used. For these parts 
of the layout I use hyphens: auto; in the css. This may lead to a 
hyphenation which may look a little bit unusual (I wouldn't hyphenate 
"encyclopedia" as "encyclope-dia" or "en-cyclopedia", rather 
"encyclo-pedia", although it's correct in any way), but doesn't break the 
layout and it is just for the critical parts. For the rest, I use  hyphens: 
manual; and propose using ­ entities only for [Text] values.

In the end, it is the users decision, anyway.



Tom Keffer schrieb am Montag, 6. März 2023 um 13:42:59 UTC+1:

> I wish I had a better idea, but I think your solution is as good as 
> anything I can come up with. 
>
> On Mon, Mar 6, 2023 at 1:34 AM michael.k...@gmx.at <michael.k...@gmx.at> 
> wrote:
>
>> How to handle manual Hyphenation? 
>>
>> When I insert a soft hypen to a string like this:
>>
>> [Texts]
>> #without hypen
>>     "Short in English" = "Suchalongwordwhichbreaksboxboundaries"
>> #with hypen
>>     "Short in English" = 
>> "Suchalong&shy;wordwhich&shy;breaksbox&shy;boundaries"
>>
>> ...it works, as long as only used in HTML.
>>
>> with 
>> [Labels]
>>     [[Generic]]
>>         rain = Nieder&shy;schlag
>>
>> I get into minor trouble, because the entity is not escaped when 
>> rendering Images:
>> [image: 2023-03-06 10_23_52-Greenshot Editor.png]
>> How can I solve this without specifying it two times? I refer to the 
>> Label both, in HTML and the image, but need to let the browser hyphenate it 
>> und certain circumstances in an adaptive layout. 
>>
>> Or, is specifying it two times the way to go, since these are distinct 
>> elements, and they are just the same string?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/0ebd7944-6b62-4afa-b210-93f70e8f0cdcn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/0ebd7944-6b62-4afa-b210-93f70e8f0cdcn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4b6d3da9-4f36-4c06-8d83-f71324bb2930n%40googlegroups.com.

Reply via email to