Re: Unbreakable space in text editor
Thanks a lot for all these advices. Yannig ___ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n
Re: Unbreakable space in text editor
2007/8/18, Frederic Peters [EMAIL PROTECTED]: You could try this: syntax match Nbsp ' ' highlight Nbsp term=reverse ctermfg=DarkRed guifg=Red (replace real space by non-breakspace in first line) And for Emacs :) (make-face 'nbsp-face) (require 'disp-table) (aset standard-display-table (make-char 'latin-iso8859-1 (- ?\240 128)) (vector (+ ?\267 (* 524288 (face-id 'nbsp-face) Ciao, Stéphane ___ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n
Re: Unbreakable space in text editor
Le samedi 18 août 2007 à 15:15 +0200, Yannig MARCHEGAY a écrit : Hello everybody, I'd like to batch-correct the unbreakable spaces that are laking in my translations. For that, the best would be to batch-search-replace in the po files in a text editor. Could you please tell me the symbol for an unbreakable space for a po file in a text editor? You can do that in vim : :%s/x x/x x/g :%s - tell vim to search and replace on entire file /x x/ (first occurence) - pattern to search for /x x/ (second occurrence) - text that will replace the searched text Here, the non-breaking space is generated by Ctrl-K + NS /g - tell vim to replace all occurrences I'm still looking for a trick to make vim display the non-breaking space in another color... Someone ? Claude ___ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n
Re: Unbreakable space in text editor
Claude Paroz wrote: I'm still looking for a trick to make vim display the non-breaking space in another color... Someone ? You could try this: syntax match Nbsp ' ' highlight Nbsp term=reverse ctermfg=DarkRed guifg=Red (replace real space by non-breakspace in first line) Frederic ___ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n