Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

Rebol/view: accentuated characters with linux mandrake 9.0

 [1/1] from: luc::spirlet::skynet::be at: 4-Jan-2005 1:47

Here some code to view the selective way wich is used by different objects to treat the accentuated letters in rebol/view. In rebollist, you will see perhaps the accentuated letters in html hex. It seems to be a particularity of mozilla on mandrake 9.0. In this case, for convenience, you can read the code in clear on REBOL [] lo: [ size 600x500 across h2 "Fen=EAtre 2" label "Un texte" return ] window1: layout [ size 200x500 backcolor linen h2 "Fen=EAtre 1" text font-name font-fixed {Les =E9tables des b=EAtes sont-ils les ch=E2teaux d'=EAtres sans d=E9fense auxquels l'homme =F4te la vie =E0 son gr=E9 ? } button "Ouvrir fen=EAtre 2" [ nlo: make block! [] nlo: copy lo for i 1 3 1 [ append nlo to-set-word join "t" i append nlo [text font-name font-fixed] append nlo reduce [to-string rejoin ["=E9table des b=EAtes " i]] append nlo [return] ] probe nlo view/new layout nlo ] button "Quitter" [quit] ] window1/offset: 650x25 view/new window1 do-events Sometimes, button or other keyword don't need font's specification but it's necessary for text, area, field and perhaps other. Perhaps these data will be useful for the users of linux Debian too. The file .i18n generated by the keyboard configuration program of KDE has been deleted because all accentuated letters were wrong in rebol. The command "kbd_mode" shows that the linux console works in ascii before the start of X. After, the console of kde works in raw mode. Luc Spirlet