CWEB, Plain TeX: how to switch from cmr8 to another font that supports foreign language characters?How to...

Why does a car's steering wheel get lighter with increasing speed

Is this Paypal Github SDK reference really a dangerous site?

What exactly is the meaning of "fine wine"?

3.5% Interest Student Loan or use all of my savings on Tuition?

Why would /etc/passwd be used every time someone executes `ls -l` command?

What can I do if someone tampers with my SSH public key?

How do you make a gun that shoots melee weapons and/or swords?

Averaging over columns while ignoring zero entries

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

Does the US political system, in principle, allow for a no-party system?

Why isn't P and P/poly trivially the same?

Tabular environment - text vertically positions itself by bottom of tikz picture in adjacent cell

Did Amazon pay $0 in taxes last year?

Does an unused member variable take up memory?

Vector-transposing function

PTIJ: Sport in the Torah

Is there a math expression equivalent to the conditional ternary operator?

Why aren't there more Gauls like Obelix?

How spaceships determine each other's mass in space?

What is the purpose of a disclaimer like "this is not legal advice"?

Will the concrete slab in a partially heated shed conduct a lot of heat to the unconditioned area?

How to distinguish easily different soldier of ww2?

Do I need a return ticket to Canada if I'm a Japanese National?

Short story about cities being connected by a conveyor belt



CWEB, Plain TeX: how to switch from cmr8 to another font that supports foreign language characters?


How to input accents in PlainTeX with UTF-8 encoding?How do I enter Unicode characters in TeX?Can I assume that the ht+dp of a strutbox == baselineskip?Monospaced font with U+1D400..U+1D7FF range (for editing)?Glyphs from font not displayedIs it possible to convert utf8 IPA chars of different foreign languages to pdf?How can I extract a character code (code point) from a character slot in a given font? [XeTeX]How to type Unicode in plain TeXDisplaying Arbitrary Unicode Characters under Plain TeX with pdfTeXSubstitute missing fonts in ConTeXtHow do I type script characters in plain TeX?













4















I'm using egreg's code to use UTF-8 in Plain TeX so I can use Donald Knuth and Silvio Levy's CWEB. However, not every TeX font supports foreign language characters such as "{y} or ç or ã.



So this code...



input cwebmac
input utfplainmac
input plain-t1

N{1}{1} Introdução. Lorem ipsum dolor...


... produces this result:



enter image description here



The problem is shown by the log file:



Missing character: There is no ç in font cmr8!
Missing character: There is no ã in font cmr8!


How could I switch cmr8 to another font that does have these characters?










share|improve this question




















  • 1





    You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

    – ShreevatsaR
    Feb 20 at 16:34











  • Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

    – ShreevatsaR
    Feb 21 at 0:36
















4















I'm using egreg's code to use UTF-8 in Plain TeX so I can use Donald Knuth and Silvio Levy's CWEB. However, not every TeX font supports foreign language characters such as "{y} or ç or ã.



So this code...



input cwebmac
input utfplainmac
input plain-t1

N{1}{1} Introdução. Lorem ipsum dolor...


... produces this result:



enter image description here



The problem is shown by the log file:



Missing character: There is no ç in font cmr8!
Missing character: There is no ã in font cmr8!


How could I switch cmr8 to another font that does have these characters?










share|improve this question




















  • 1





    You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

    – ShreevatsaR
    Feb 20 at 16:34











  • Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

    – ShreevatsaR
    Feb 21 at 0:36














4












4








4








I'm using egreg's code to use UTF-8 in Plain TeX so I can use Donald Knuth and Silvio Levy's CWEB. However, not every TeX font supports foreign language characters such as "{y} or ç or ã.



So this code...



input cwebmac
input utfplainmac
input plain-t1

N{1}{1} Introdução. Lorem ipsum dolor...


... produces this result:



enter image description here



The problem is shown by the log file:



Missing character: There is no ç in font cmr8!
Missing character: There is no ã in font cmr8!


How could I switch cmr8 to another font that does have these characters?










share|improve this question
















I'm using egreg's code to use UTF-8 in Plain TeX so I can use Donald Knuth and Silvio Levy's CWEB. However, not every TeX font supports foreign language characters such as "{y} or ç or ã.



So this code...



input cwebmac
input utfplainmac
input plain-t1

N{1}{1} Introdução. Lorem ipsum dolor...


... produces this result:



enter image description here



The problem is shown by the log file:



Missing character: There is no ç in font cmr8!
Missing character: There is no ã in font cmr8!


How could I switch cmr8 to another font that does have these characters?







unicode plain-tex cweb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 12:56







Joep Awinita

















asked Feb 19 at 23:41









Joep AwinitaJoep Awinita

1546




1546








  • 1





    You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

    – ShreevatsaR
    Feb 20 at 16:34











  • Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

    – ShreevatsaR
    Feb 21 at 0:36














  • 1





    You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

    – ShreevatsaR
    Feb 20 at 16:34











  • Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

    – ShreevatsaR
    Feb 21 at 0:36








1




1





You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

– ShreevatsaR
Feb 20 at 16:34





You could try pinging @egreg on that answer so that this gets his attention — there may be a solution without switching away from cmr8. (I think this may be something about uppercase... haven't looked deeply.)

– ShreevatsaR
Feb 20 at 16:34













Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

– ShreevatsaR
Feb 21 at 0:36





Also, CWEB redefines a bunch of things, and has some strict rules about what can go inside section names... this may be violating some of that. (Have you considered using XeTeX / LuaTeX instead of the above?)

– ShreevatsaR
Feb 21 at 0:36










3 Answers
3






active

oldest

votes


















2














You have to define a suitable font for eightrm, but also setup some uppercase conversions; here I define only those necessary for the examples.



There was also an unfortunate typo in utfplainmac.tex, with c{A} instead of the correct c{C}. Fix it in the file.



input cwebmac
input utfplainmac
input plain-t1

fonteightrm=ecrm0800

uccode"A7="87 % ç is <C3><A7>, Ç is <C3><87>
uccode"A3="83 % ã is <C3><A3>, Ã is <C3><83>

N{1}{1} Introdução. Lorem ipsum dolor...

bye


enter image description here






share|improve this answer































    1














    Add to limbo:



    fonteightrm=<your font>





    share|improve this answer































      0














      THere is an alternative using pdfcsplain:



      input cwebmac
      input utf8lat1
      input lmfonts

      N{1}{1} Introdução. Lorem ipsum dolor...

      end




      share























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "85"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475749%2fcweb-plain-tex-how-to-switch-from-cmr8-to-another-font-that-supports-foreign-l%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        You have to define a suitable font for eightrm, but also setup some uppercase conversions; here I define only those necessary for the examples.



        There was also an unfortunate typo in utfplainmac.tex, with c{A} instead of the correct c{C}. Fix it in the file.



        input cwebmac
        input utfplainmac
        input plain-t1

        fonteightrm=ecrm0800

        uccode"A7="87 % ç is <C3><A7>, Ç is <C3><87>
        uccode"A3="83 % ã is <C3><A3>, Ã is <C3><83>

        N{1}{1} Introdução. Lorem ipsum dolor...

        bye


        enter image description here






        share|improve this answer




























          2














          You have to define a suitable font for eightrm, but also setup some uppercase conversions; here I define only those necessary for the examples.



          There was also an unfortunate typo in utfplainmac.tex, with c{A} instead of the correct c{C}. Fix it in the file.



          input cwebmac
          input utfplainmac
          input plain-t1

          fonteightrm=ecrm0800

          uccode"A7="87 % ç is <C3><A7>, Ç is <C3><87>
          uccode"A3="83 % ã is <C3><A3>, Ã is <C3><83>

          N{1}{1} Introdução. Lorem ipsum dolor...

          bye


          enter image description here






          share|improve this answer


























            2












            2








            2







            You have to define a suitable font for eightrm, but also setup some uppercase conversions; here I define only those necessary for the examples.



            There was also an unfortunate typo in utfplainmac.tex, with c{A} instead of the correct c{C}. Fix it in the file.



            input cwebmac
            input utfplainmac
            input plain-t1

            fonteightrm=ecrm0800

            uccode"A7="87 % ç is <C3><A7>, Ç is <C3><87>
            uccode"A3="83 % ã is <C3><A3>, Ã is <C3><83>

            N{1}{1} Introdução. Lorem ipsum dolor...

            bye


            enter image description here






            share|improve this answer













            You have to define a suitable font for eightrm, but also setup some uppercase conversions; here I define only those necessary for the examples.



            There was also an unfortunate typo in utfplainmac.tex, with c{A} instead of the correct c{C}. Fix it in the file.



            input cwebmac
            input utfplainmac
            input plain-t1

            fonteightrm=ecrm0800

            uccode"A7="87 % ç is <C3><A7>, Ç is <C3><87>
            uccode"A3="83 % ã is <C3><A3>, Ã is <C3><83>

            N{1}{1} Introdução. Lorem ipsum dolor...

            bye


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 22 at 21:37









            egregegreg

            725k8819183224




            725k8819183224























                1














                Add to limbo:



                fonteightrm=<your font>





                share|improve this answer




























                  1














                  Add to limbo:



                  fonteightrm=<your font>





                  share|improve this answer


























                    1












                    1








                    1







                    Add to limbo:



                    fonteightrm=<your font>





                    share|improve this answer













                    Add to limbo:



                    fonteightrm=<your font>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 21 at 1:07









                    Igor LiferenkoIgor Liferenko

                    2,110829




                    2,110829























                        0














                        THere is an alternative using pdfcsplain:



                        input cwebmac
                        input utf8lat1
                        input lmfonts

                        N{1}{1} Introdução. Lorem ipsum dolor...

                        end




                        share




























                          0














                          THere is an alternative using pdfcsplain:



                          input cwebmac
                          input utf8lat1
                          input lmfonts

                          N{1}{1} Introdução. Lorem ipsum dolor...

                          end




                          share


























                            0












                            0








                            0







                            THere is an alternative using pdfcsplain:



                            input cwebmac
                            input utf8lat1
                            input lmfonts

                            N{1}{1} Introdução. Lorem ipsum dolor...

                            end




                            share













                            THere is an alternative using pdfcsplain:



                            input cwebmac
                            input utf8lat1
                            input lmfonts

                            N{1}{1} Introdução. Lorem ipsum dolor...

                            end





                            share











                            share


                            share










                            answered 8 mins ago









                            wipetwipet

                            35.2k4983




                            35.2k4983






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475749%2fcweb-plain-tex-how-to-switch-from-cmr8-to-another-font-that-supports-foreign-l%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

                                Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

                                Castillo d'Acher Características Menú de navegación