On Mon, 20 Aug 2007 14:29:02 +0200 Niklas Nebel <[EMAIL PROTECTED]> wrote:
> Kohei Yoshida wrote: > > But, logically, it would make sense to store the ruby text together with > > the base text, because the ruby text is conceptually a property of the > > base text. Putting them together would also eliminate the > > synchronization problem because the ruby and the base texts would never > > be separate. > > Conceptually, it's a property of a part of the text, not the whole cell > content. > > > So, overall, introducing a new class named ScRubyStringCell as a child > > class of ScStringCell, and making changes to the EditEngine class (in > > svx) seems to be the most attractive choice. But I wonder what the > > level of difficulty is for this approach. > > ScRubyStringCell would have to keep a list of character positions and > associated ruby text. The cleaner solution might be to always use > ScEditCell if ruby is present. How many cells with ruby text will there > usually be in a spreadsheet anyway? The number of cells with ruby text completely depends on the situation. Excel file with list of names, addresses and jobs probably contain many cells with ruby text. In contrast, Excel file of financial statements have few cells with ruby text. These are just examples. Why don't you try searching Excel files with Google? You can easily find many Excel files that includes ruby text with the following searching option; - Language: Japanese - File Format: Microsoft Excel (.xls) Anyway, I don't think your solusion is good. In the case of Excel, Japanese text in a cell is usually entered by IME with ruby text. Of course, OOo should mimic the behavior. If all cells with ruby text used ScEditCell, most cells with Japanese text would use ScEditCell. As Eike wrote, there's much overhead involved with ScEditCell. -- Japanese Native-Language project Good-Day Inc. Takashi Nakamoto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
