treesheets icon indicating copy to clipboard operation
treesheets copied to clipboard

line wrap problem when i use chinese or japnese in cell

Open ouligei6666 opened this issue 1 year ago • 3 comments

Hi

when i use chinese or japnese in treesheets cell, the line wrap length are twice longer than english.

i think because the width of a single chinese character or japnese character is double longer than an english character, while the same line limit of character count.

thank you

TreeSheets_20230527224509601 TreeSheets_20230527224608544

ouligei6666 avatar May 27 '23 15:05 ouligei6666

and another little problem: with same character num limit, there is too much information in a chinese line. one or two chinese characters is equal to a whole english word in word meaning. 50 english characters are about 10 words, while 50 chinese characters are more than 25 words.

ouligei6666 avatar May 27 '23 15:05 ouligei6666

problem solving ideas: there is no space split between chinese charactors or words. when there are about consecutive 25 characters without any space, just wrap

ouligei6666 avatar May 27 '23 16:05 ouligei6666

Hmm.. best would be to use a custom length functions that would regard certain characters in the unicode range as double.

Alternatively we could switch to using rendered size instead of characters for column width, but that would likely be too expensive? Then again we already use rendered width for layout somewhere, so maybe this information can be reused.

aardappel avatar May 27 '23 17:05 aardappel