codifica caratteri

  • Creatore
    Topic
  • #13588
    Up
    0
    Down
    ::


    ciao a tutti,

    ho un problema, in parte risolto, in parte no. Come editor per scrivere il codice di latex uso emacs, tutto è andato sempre bene finché non ho installato SuseLinux. infatti quando salvo un file.tex emacs salva i caratteri con una codifica strana che non sono riuscito ancora a capire, né tanto meno a modificare. quindi quando compilo succede il caos. Ho risolto, o meglio aggirato il problema, usando altri files.tex sostituendo il testo, così emacs non fa altro che aggiungere testo a quello precedente con la codifica precedente.
    Sapete come risolvere il problema in maniera più elegante?
    grazie,
    ciao
    angelico

Visualizzazione 1 filone di risposte
  • Autore
    Risposte
    • #13589
      Up
      0
      Down
      ::


      Non so se ti puo’ essere utile per quanto mi riguarda sono passato alla suse 10.2 durante le vacanze di Pasqua e non ho avuto problemi. Prima usavo la codifica iso 8859-1 e avevo nel mio file .emacs:

        (set-language-environment “Latin-1”)
        (standard-display-european 1)

      mentre nel file .Xresources avevo:

        emacs*font: -adobe-courier-medium-r-normal–18-180-75-75-m-110-iso8859-15

      ho mantenuto queste impostazioni (che andavano bene con la mandriva 2006) anche con la suse 10.2 e non ho avuto problemi.
      Mi rendo conto che la risposta è tardiva ma quando hai postato non avevo ancora installato la suse.

    • #13590
      Up
      0
      Down
      ::


      ciao,
      rispondo dopo altrettanto tempo. Ora ho ubuntu 10.04 se inseirsco la stringa nel file .emacs ho questo risultato:

      Warning (i18n): `standard-display-european’ is semi-obsolete; see its doc string for details

      Effettivamente ora il problema è risolto, ma come faccio ad eliminare lo Warning? è possibile impostare qualcosa di più recente?

      non se ho inseirto male le stringhe. questo è il contenuto del mio file .emacs:

      custom-set-variables
      ;; custom-set-variables was added by Custom.
      ;; If you edit it by hand, you could mess it up, so be careful.
      ;; Your init file should contain only one such instance.
      ;; If there is more than one, they won’t work right.
      ‘(cua-mode t nil (cua-base))
      ‘(inhibit-startup-screen t)
      ‘(save-place t nil (saveplace))
      ‘(show-paren-mode t)
      ‘(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
      ‘(uniquify-buffer-name-style (quote forward) nil (uniquify)))
      (custom-set-faces
      ;; custom-set-faces was added by Custom.
      ;; If you edit it by hand, you could mess it up, so be careful.
      ;; Your init file should contain only one such instance.
      ;; If there is more than one, they won’t work right.
      ‘(default ((t (:inherit nil :stipple nil :background “darkslategray” :foreground “wheat” :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry “unknown” :family “DejaVu Sans Mono”)))))
      (set-language-environment “Latin-1”)
      (standard-display-european 1)

      grazie tante,
      ciao
      angelico

Visualizzazione 1 filone di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top