Menu

International Font Installation

Help
Mike Ayers
2000-08-14
2000-09-14
  • Mike Ayers

    Mike Ayers - 2000-08-14

    I followed the instructions for the international fonts, I think, but it didn't work, I think.  Since that's such a fuzzy statement, here are some details:

    I downloaded intlfonts-1.2.tar.gz from ftp.gnu.org, then used StuffIt to build the tree.  Next I got mac.sea, and unstuffed it as folder 'mac' under the intlfonts-1.2 folder.  Note that I found GNU-fonts.sea, but the instructions did not mention this package, so I did not use it.

    Nerxt, I spark up MPW and set the directory to the intlfonts-1.2/mac folder and command it to MakeAll.  After ~3 seconds, MPW appears to be done.  There are font suitcases in the Asian, Misc, and European directories.  I drag these onto the system folder, which informs me that they belong in the font folder.  I hit the "OK, put them there" button and alll appears well.

    However, no new font capabilities appear.  'C-h h' shows no new languages.  Also, the font suitcases seem rather small, especially the Asian font suitcase, whose 87k is probably not enough for a single Asian font (except maybe Vietnamese).

    Mac OS 9.0.4, MPW 3.5.  Hints or clarifications appreciated.

     
    • Andrew Choi

      Andrew Choi - 2000-08-14

      Hi,

      Building the font package should generate four font suitcases:
      GNU-Asian, GNU-European, GNU-Japanese.X, and GNU-Misc.  These should
      be placed in the Fonts folder.  Together they contain bitmap fonts for
      many character set registry and encodings, including iso8859-1,
      iso8859-2, iso8859-3, iso8859-4, iso8859-5, iso8859-7, iso8859-8,
      iso8859-9, tis620.2529-1, MuleLao-1, and viscii1.1-1.

      You should be able to verify whether the fonts have been generated
      correctly by viewing the font menu of any other application (such as
      BB Edit).  There should be a number of fonts that begins with ETL-,
      Misc-, or Sony-.

      No bitmap for CJK fonts are included in the generated font suitcases
      except Hirakana and Katakana characters.  So Emacs must rely on the
      Mac OS to provide these.  Internationalized versions (CJK) of the Mac
      OS should work.  So should English versions with Language Kits.
      English version with Multilingual Internet Access (comes with 8.5 or
      above) should also work.

      Make sure the following section in your .emacs file gets executed at
      start up time.

      ;; ...
      (if (fboundp 'new-fontset)
          (progn
            (create-fontset-from-fontset-spec
             "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac,
              mac-roman-lower:-*-Monaco-*-*-*-*-14-*-*-*-*-*-mac-roman,
              mac-roman-upper:-*-Monaco-*-*-*-*-14-*-*-*-*-*-mac-roman,
              thai-tis620:-ETL-Fixed-*-*-*-*-16-*-*-*-*-*-tis620.2529-1,
              lao:-Misc-Fixed-*-*-*-*-16-*-*-*-*-*-MuleLao-1,
              vietnamese-viscii-lower:-ETL-Fixed-*-*-*-*-16-*-*-*-*-*-viscii1.1-1,
              vietnamese-viscii-upper:-ETL-Fixed-*-*-*-*-16-*-*-*-*-*-viscii1.1-1,
              chinese-big5-1:-*-Nice Taipei Mono-*-*-*-*-12-*-*-*-*-*-big5,
              chinese-big5-2:-*-Nice Taipei Mono-*-*-*-*-12-*-*-*-*-*-big5,
              chinese-gb2312:-*-Beijing-*-*-*-*-16-*-*-*-*-*-gb2312,
              japanese-jisx0208:-*-\x8d\xd7\x96\xbe\x92\xa9\x91\xcc-*-*-*-*-16-*-*-*-*-*-jisx0208-sjis,
              katakana-jisx0201:-*-*-*-*-*-*-16-*-*-*-*-*-JISX0201.1976-0,
              korean-ksc5601:-*-Seoul-*-*-*-*-16-*-*-*-*-*-ksc5601"
             t)
           
            ; Use the fontset we just created
            (modify-frame-parameters
             (selected-frame)
             '((height . 44)
               (width . 80)
               (font . "fontset-mac")))))

      This creates the fontset "fontset-mac" and associates a font with each
      coding system.  You may need to modify individual font names if you
      don't have certain fonts on your system.  It also tells Emacs to use
      the fontset "fontset-mac" for the frame.  You can use M-x
      describe-fontset RET fontset-mac RET to check whether the fonts are
      set up properly and whether they can be loaded successfully (run C-h h
      first, then M-x describe-fontset).

      Andrew.

       
      • Mike Ayers

        Mike Ayers - 2000-08-23

        Thanks for the help.  I've tried it, but something's not right.  Details:

        I am not getting a Japanese suitcase.  I tried "MakeCleanAll" followed by "MakeAll" in case I built wrong, but nothing was different.  I can see ETL fonts (mostly 8859 versions) in AppleWorks.  I added the .emacs code, shut down emacs and restarted, all to no avail - C-h h still shows empty boxes.

        I checked my fonts.  I don't have "Nice Taipei Mono", but I do have "Taipei" - are they the same?  In any case, I have "Beijing", so I should get simplified characters, but they're not showing up.  Also, I'm guessing that the references to "fixed" in the .emacs code are to the ETL-fixed-* fonts I see.

        I think the problem is that I'm not building what you think I'm building (i.e. MPW).  Should I post pre- and post-build directory listings for you or something?

        All help appreciated.

         
        • Andrew Choi

          Andrew Choi - 2000-08-23

          Hi,

          If building the fonts is giving you trouble, perhaps it is easiest
          just to download the prebuilt version from:

            ftp://mac-emacs.sourceforge.net/pub/mac-emacs/GNU-Fonts.smi.bin

          and put the four font suitcases in it (GNU-Asian, GNU-European,
          GNU-Japanese.X, and GNU-Misc) in to your System Folder.  I will take a
          look at whether there is something I need to update in the build
          scripts when I can.

          Then please (re)start Emacs and check what fonts are available to it
          by typing this expression in the *scratch* buffer

            (x-list-fonts "-*-*-*-*-*-*-*-*-*-*-*-*-*")

          (that's 13 -'s and *'s) and then typing C-j.  This should generate a
          list similar to the following one.  It is very important that you have
          at least the -ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-1 font (otherwise
          the fontset specified in the .emacs file will not be properly
          constructed) and whichever international font you want to use in your
          fontset.

          ("-*-Apple LiGothic Medium-*-*-*-*-*-*-*-*-*-*-big5" "-*-Apple LiSung Light-*-*-*-*-*-*-*-*-*-*-big5" "-*-Beijing-*-*-*-*-*-*-*-*-*-*-gb2312" "-*-BiauKai-*-*-*-*-*-*-*-*-*-*-big5" "-*-Courier-*-*-*-*-*-*-*-*-*-*-mac-roman" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-VISCII1.1-1" "-Misc-Fixed-*-*-*-*-*-*-*-*-*-*-MuleLao-1" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-tis620.2529-1" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-KOI8-R" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-7" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-5" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-9" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-4" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-3" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-2" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-1" "-Sony-Fixed-*-*-*-*-*-*-*-*-*-*-JISX0201.1976-0" "-ETL-Fixed-*-*-*-*-*-*-*-*-*-*-ISO8859-8" "-*-Mishawaka Bold-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-Mishawaka-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-MT Extra-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-Osaka-*-*-*-*-*-*-*-*-*-*-jisx0208-sjis" "-*-Osaka\201|\223\231\225\235-*-*-*-*-*-*-*-*-*-*-jisx0208-sjis" "-*-ProFont-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-Seoul-*-*-*-*-*-*-*-*-*-*-ksc5601" "-*-Taipei-*-*-*-*-*-*-*-*-*-*-big5" "-*-TTYFont-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-VT100-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-Nice Taipei-*-*-*-*-*-*-*-*-*-*-big5" "-*-Nice Taipei Mono-*-*-*-*-*-*-*-*-*-*-big5" "-*-.Keyboard-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-Monaco-*-*-*-*-*-*-*-*-*-*-mac-roman" "-*-fixed-bold-i-normal-*-16-*-*-*-*-*-fontset-mac" "-*-fixed-medium-i-normal-*-16-*-*-*-*-*-fontset-mac" "-*-fixed-bold-r-normal-*-16-*-*-*-*-*-fontset-mac" "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac" "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard")

          Then if that looks OK, type

            M-x describe-fontset <RET>

          then when prompted

            -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac <RET>

          You should get something like the following list:

            Fontset-Name                          WDxHT Style
          ------------                          ----- -----
          -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac      16x16    medium
            O Charset / Fontname
            - ------------------
            o ascii
              -*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1
            o latin-iso8859-1
              -*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1
            - latin-iso8859-2
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-2
            - latin-iso8859-3
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-3
            - latin-iso8859-4
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-4
            - thai-tis620
              -ETL-Fixed-*-*-*-*-16-*-*-*-*-*-tis620.2529-1
            - greek-iso8859-7
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-7
            - arabic-iso8859-6
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-6
            - hebrew-iso8859-8
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-8
            - katakana-jisx0201
              -*-*-*-*-*-*-16-*-*-*-*-*-JISX0201.1976-0
            - latin-jisx0201
              -*-*-medium-r-normal-*-16-*-*-*-*-*-jisx0201*-*
            - cyrillic-iso8859-5
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-5
            - latin-iso8859-9
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-9
            - japanese-jisx0208-1978
              -*-*-medium-r-normal-*-16-*-*-*-*-*-jisx0208.1978*-*
            - chinese-gb2312
              -*-Beijing-*-*-*-*-16-*-*-*-*-*-gb2312
            - japanese-jisx0208
              -*-*-medium-r-normal-*-16-*-*-*-*-*-jisx0208.1983*-*
            - korean-ksc5601
              -*-Seoul-*-*-*-*-16-*-*-*-*-*-ksc5601
            - japanese-jisx0212
              -*-*-medium-r-normal-*-16-*-*-*-*-*-jisx0212*-*
            - chinese-cns11643-1
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-1
            - chinese-cns11643-2
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-2
            - chinese-big5-1
              -*-Nice Taipei Mono-*-*-*-*-12-*-*-*-*-*-big5
            - chinese-big5-2
              -*-Nice Taipei Mono-*-*-*-*-12-*-*-*-*-*-big5
            - chinese-sisheng
              -*-*-medium-r-normal-*-16-*-*-*-*-*-sisheng_cwnn*-*
            - ipa
              -*-*-medium-r-normal-*-16-*-*-*-*-*-muleipa*-*
            - vietnamese-viscii-lower
              -ETL-Fixed-*-*-*-*-16-*-*-*-*-*-viscii1.1-1
            - vietnamese-viscii-upper
              -ETL-Fixed-*-*-*-*-16-*-*-*-*-*-viscii1.1-1
            - arabic-digit
              -*-*-medium-r-normal-*-16-*-*-*-*-*-mulearabic-0
            - arabic-1-column
              -*-*-medium-r-normal-*-16-*-*-*-*-*-mulearabic-1
            - ascii-right-to-left
              -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-1
            - lao
              -Misc-Fixed-*-*-*-*-16-*-*-*-*-*-MuleLao-1
            - mac-roman-lower
              -*-Monaco-*-*-*-*-14-*-*-*-*-*-mac-roman
            - mac-roman-upper
              -*-Monaco-*-*-*-*-14-*-*-*-*-*-mac-roman
            - arabic-2-column
              -*-*-medium-r-normal-*-16-*-*-*-*-*-mulearabic-2
            - indian-is13194
              -*-*-medium-r-normal-*-16-*-*-*-*-*-is13194-devanagari
            - indian-1-column
              -*-*-medium-r-normal-*-16-*-*-*-*-*-muleindian-1
            - tibetan-1-column
              -*-*-medium-r-normal-*-16-*-*-*-*-*-muletibetan-1
            - ethiopic
              -*-*-medium-r-normal-*-16-*-*-*-*-*-ethiopic-unicode
            - chinese-cns11643-3
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-3
            - chinese-cns11643-4
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-4
            - chinese-cns11643-5
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-5
            - chinese-cns11643-6
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-6
            - chinese-cns11643-7
              -*-*-medium-r-normal-*-16-*-*-*-*-*-cns11643.1992-7
            - indian-2-column
              -*-*-medium-r-normal-*-16-*-*-*-*-*-muleindian-2
            - tibetan
              -*-*-medium-r-normal-*-16-*-*-*-*-*-muletibetan-0

          Whichever fonts on this list that you also have on the list generated
          by x-list-fonts should be displayed correctly in the hello file.  Let
          me know which part is different on your machine.  Also Nice Taipei
          Mono is not the same as Taipei.  If you have the latter, change the
          list passed to the create-fontset-from-fontset-spec function in .emacs
          to say -*-Taipei-... instead of -*-Nice Taipei Mono-... to choose the
          right font for the Big-5 encoding.

          Andrew.

           
          • Mike Ayers

            Mike Ayers - 2000-08-24

            ( x-list-fonts "-*-*-*-*-*-*-*-*-*-*-*-*-*" )
            ("no-such-font")

                Hoo boy!  I even reinstalled from the SMI file and got the same results.  This may be a clue:

            (fboundp 'new-fontset)
            nil

                I await your wisdom...

             
            • Andrew Choi

              Andrew Choi - 2000-08-24

              That just means you are probably not running version 20.6 d5.  Please check that the application "Emacs CW" has creation and modification dates of March 13, 2000.

               
              • Mike Ayers

                Mike Ayers - 2000-09-10

                    No.  It has creation and modification dates of March 12, 2000 and identifies itself as emacs 20.5 d5.  I just redownloaded the package and got the same results.  Please doublecheck the posted bin file.

                    Thanks.

                 
                • Mike Ayers

                  Mike Ayers - 2000-09-14

                  "Curioser and curioser", said Alice...

                      Although the command-I information (Mar 12, 2000, emacs 20.5 d5) for the executable is the same as it was before, it appears to be the correct version (could this be a rebuild desktop thing?).  I now have fonts for Japanese, Chinese, and Korean!  Also, lots of other things are in there now, as this version has an .emacs file.

                      Thanks very much for the help.  I will now attempt to compose Asian text in emacs.

                  BV

                   

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.