Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » misalligned special characters
misalligned special characters [message #4785] Tue, 22 August 2006 11:24 Go to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

the holiday is finished and the work already started.
I've a problem with Italian accented characters. I mean, they look OK, but semms that a blank space is eat at their right. Please have a look to the screenshot below taken from a LineEdit.
index.php?t=getfile&id=220&private=0

As you see, the item 1 BRUNELLO, because of the '' is misalligned in the next columns. The same occur with special German characters, some user said.

Then I've another example in CtrlArray:
index.php?t=getfile&id=221&private=0

This is where I set the language and charset:
void  ReadConfigFile()
{ VectorMap<String, String> cfg = LoadIniFile("./vega.cfg");
  String recentdir = cfg.Get("RECENTDIR", Null);
  String language  = cfg.Get("LANGUAGE", Null);
  String pathDB  = cfg.Get("PATHDB", Null);
  TD.PATHDIR = recentdir;
  TD.LANGUAGE = language;
  TD.PATHDIRDB = pathDB;
  SetDefaultCharset(CHARSET_UTF8);
  if      ( language == "IT-IT" ) SetLanguage( LNG_('I','T','I','T') );
  else if ( language == "DE-DE" ) SetLanguage( LNG_('D','E','D','E') );
  else if ( language == "FR-FR" ) SetLanguage( LNG_('F','R','F','R') );
  else if ( language == "ES-ES" ) SetLanguage( LNG_('E','S','E','S') );
  else if ( language == "PT-PT" ) SetLanguage( LNG_('P','T','P','T') );
  else if ( language == "RU-RU" ) SetLanguage( LNG_('R','U','R','U') );
  else if ( language == "PT-PT" ) SetLanguage( LNG_('p','T','P','T') );
  else SetLanguage( LNG_('E','N','U','S') );   // default English
}

Any suggestion? (using 607-dev1)

Luigi
  • Attachment: ss_12.jpg
    (Size: 11.82KB, Downloaded 2503 times)
  • Attachment: ss_13.jpg
    (Size: 18.51KB, Downloaded 2561 times)

[Updated on: Tue, 22 August 2006 11:26]

Report message to a moderator

Re: misalligned special characters [message #4792 is a reply to message #4785] Tue, 22 August 2006 15:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
Well, in that LineEdit, how the caret behaves? Is not there simply space missing because of some problem in String processing (in your code?)

Mirek
Re: misalligned special characters [message #4858 is a reply to message #4792] Wed, 23 August 2006 16:18 Go to previous message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
luzr wrote on Tue, 22 August 2006 15:24

Well, in that LineEdit, how the caret behaves? Is not there simply space missing because of some problem in String processing (in your code?)
Mirek

The LineEdit is not responsible as it just shows a text file.
Instead I suspect something happen when the data is retrieved from the widget (cell of arrayctrl or simply editctrl).
I've analysed the string coming from this ctrls and immediately printed on a formatted file. Each time there is a special character (with accent for Italian language) I have observed a misalligning to the left as if a character is eat FOR EACH special characters present in the original string.
If the ctrl is absent there is no problem.
Perhaps I must prepare a simply test case... after I substitute my faulty hard disk...

Luigi
Previous Topic: TheIDE fie choser dialog can't recongize Chinese
Next Topic: CJK support
Goto Forum:
  


Current Time: Fri Nov 15 03:31:05 CET 2019

Total time taken to generate the page: 0.01725 seconds