To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=5930
------- Additional comments from [email protected] Wed Oct 20 09:11:27 +0000 2010 ------- For eadthem's comment: "if the SI letter is right after the number, it will be taken as SI, if there is a space it will be taken as text." I don't think it is a good idea to diferentiate on the space character. There are languages where there is a (non-breaking) space between the number and the SI letter. I suggest the following way: check the word following the number: If it is constructed from the word from the SI prefix list (y,z,a,f,p,n,n,u,m,c,d,da,k,M,G,T,P,E,Z,Y) followed by a word from a predefined (language-specific) list of known unit names (m,kg,g,s,A,V,K,°C,mol,cd,Hz,N,Pa,J,W,C,F,T,H,ohm,...), then it is a number using Engineering Notation. In all other cases ( and if there are additional text after the prefix+unit?) the input is text. The SI list a letter list, except the deca "da". It should be considered wether to handle this exception or not. (I think it is not a big loss if we miss da and use the one-letter prefixes only.) There can be aliases, eg. for micro, "µ" and u is used. I don't know wheter these prefixes are international symbols, but a think it is, so it can be a fix list. For the unit name list the using of aliases should be considered, eg. "m" and "meter" and "metre" are the same thing, as the "ohm" and the greek Omega letter. Unit names can be language-specific. In Hungary, for the unit "second" we use not only the letter s, but also "mp" or "másodperc" (the Hungarian name of second). So my suggestion is to recognise the one-letter SI prefix followed by an element from the (language-specific) unit names list. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
