[groff] Unicode fonts output
Hello, I would like to get Unicode fonts output, for characters like š Š ć Ć č Č đ Đ ž Ž, but I cannot get it. pdfmom -k letter.mom > out.pdf gave me: letter.mom:17: warning: can't find special character `u0063_030C' Any clues what to do? Jean
Re: [groff] Unicode fonts output
* Deri [2019-08-06 18:56]: > On Tuesday, 6 August 2019 17:00:34 BST Jean Louis wrote: > > Hello, > > > > I would like to get Unicode fonts output, for characters like š Š ć Ć > > č Č đ Đ ž Ž, but I cannot get it. > > > > pdfmom -k letter.mom > out.pdf > > > > gave me: > > > > letter.mom:17: warning: can't find special character `u0063_030C' > > > > Any clues what to do? > > > > Jean > > Hi Jean, > > This may work. > > Anywhere you have a FAMILY command in your mom file, such as:- > > .FAMILY H > > Change this to:- > > .FAMILY U_H I wish it could be simpler. But I am not getting it to work. Find the file in attachment. [~/Programming/groff/mom-2.4/examples] admin-> pdfmom -k letter.mom > out.pdf letter.mom:10: warning: can't find font `U_HR' letter.mom:18: warning: can't find special character `u0043_030C' This is because of character Č inside. Jean
Re: [groff] Unicode fonts output
Find it in attachment. .\" -*- mode: text; coding: utf-8; -*- \# \# Copyright (C) 2004-2018 Free Software Foundation, Inc. \# \# Copying and distribution of this file, with or without modification, \# are permitted in any medium without royalty provided the copyright \# notice and this notice are preserved. \# .AUTHOR"Yannick P. Guique" .FAMILY U_H .DOCTYPELETTER .PRINTSTYLE TYPESET .START .DATE August 25, 2013 .TO GUILLAUME BARRIÈRES Minidoux Corporation Č 5000 Pannes Drive Redmond, Virginia USA .FROM Y.P. GUIQUE 022 Umask Road St-Sauveur-en-dehors-de-la-mappe, Québec CANADA .GREETING Dear Mr. Barrières, .PP It has come to my attention that you have been lobbying the US government to prohibit the use of open source software by endeavouring to outlaw so-called "warranty free" applications. .PP I feel it is my duty to inform you that the success of your operating system with its embedded web browser relies heavily on open source programs and protocols, most notably TCP/IP. .PP Therefore, in the interests of your corporation's fiscal health, I strongly advise that you withdraw support for any US legislation that would cripple or render illegal open source development. .CLOSING Sincerely, .\" Local Variables: .\" mode: nroff .\" End: .\" vim: filetype=groff:
Re: [groff] Unicode fonts output
* Deri [2019-08-06 20:12]: > One, my solution used underscores when it should have used hyphens, so the > magic is U-!! > > Two, I have found, in your example, the .FAMILY line needs to come after > .START. > > The attached works Ok on my setup. So if the file works on your side, on my side I get these problems from the file you have prepared. So something is wrong on my system. letter.mom:13: warning: can't find font `U-HR' letter.mom:18: warning: can't find special character `u0063_030C' letter.mom:18: warning: can't find special character `u0043_030C' letter.mom:18: warning: can't find special character `u0111' letter.mom:18: warning: can't find special character `u0110' Mark set
Re: [groff] Unicode fonts output
* Morten Bo Johansen [2019-08-06 20:43]: > On 2019-08-06 Jean Louis wrote: > > > So if the file works on your side, on my side I get these > > problems from the file you have prepared. > > > > So something is wrong on my system. > > I am not very familiar with mom, but it works for me if I a > place an .ft macro after the .START macro and the font you use > of course has the glyphs that you want to print, e.g.: > > .AUTHORYannick P. Guique > .DOCTYPELETTER > .PRINTSTYLE TYPESET > .START > .ft LinBiolinumR Not getting it yet, it does not work. How do I find available fonts, is it in /usr/share/groff/...fonts ? I just want to get one working example. .FT U-H .DATE August 25, 2013 .TO GUILLAUME BARRIÈRES š Š ć Ć č Č đ Đ ž Ž that gives me: letter.mom:13: warning: can't find font `U-H' [mom]: Font style "U-H" at line 13 has not been registered. Aborting 'letter.mom' at FT, line 13. So adding U- is not helping.
Re: [groff] Unicode fonts output
* Peter Schaffter [2019-08-06 21:23]: > On Tue, Aug 06, 2019, Deri wrote: > > Two problems:- > > > > One, my solution used underscores when it should have used > > hyphens, so the magic is U-!! How do I create U- fonts? Do I need to use devpdf/util/BuildFoundries somehow? Is there example how to use it? Jean
Re: [groff] Unicode fonts output
* Morten Bo Johansen [2019-08-06 20:43]: > On 2019-08-06 Jean Louis wrote: > > > So if the file works on your side, on my side I get these > > problems from the file you have prepared. > > > > So something is wrong on my system. > > I am not very familiar with mom, but it works for me if I a > place an .ft macro after the .START macro and the font you use > of course has the glyphs that you want to print, e.g.: > > .AUTHORYannick P. Guique > .DOCTYPELETTER > .PRINTSTYLE TYPESET > .START > .ft LinBiolinumR > > then the 'Č' is shown. I do not have LinBiolinumR so I need to figure out what to place instead on that place jus to try it out.
Re: [groff] Unicode fonts output
* Morten Bo Johansen [2019-08-07 14:47]: > On 2019-08-06 Jean Louis wrote: > > > I do not have LinBiolinumR so I need to figure out what to place > > instead on that place jus to try it out. > > Many fonts have these glyphs, e.g. Arial, but the stock groff > fonts like Helvetica an Times seem to lack them. This also > works for me: > > .AUTHORYannick P. Guique > .DOCTYPELETTER > .PRINTSTYLE TYPESET > .FAMILY Arial > .START > > > Did you try to give the -K utf-8 argument to the compiler? > >groff -mom -Tps -K utf-8 letter.mom | gv - Well I am still searching 1 font that will work. Just one. Then I can try it.
Re: [groff] Unicode fonts output
* Dale Snell [2019-08-06 23:55]: > On Tue, Aug 6, 2019, 12:33 PM Jean Louis wrote > > How do I create U- fonts? > > The URW++ fonts (i.e., U-*) should be installed when you build > Groff. Maybe. I got it in GNU/Linux distribution, I did not build it myself. Maybe I should later. But I wish to try if it works as packaged. > One would hope that your Gnu/Linux distro vendor would include them, > but that's not guaranteed. I cannot find them. > Worse, URW++ changed the names of their files a while back, and not > all the distro vendors have caught up. If the U-* fonts won't > install when you build Groff, you'll need to install new fonts > manually. I suggest using the install-font script that is included > with MOM. I have the script, it requires file argument, or font argument, how should I know which one? > I used that to install the TeX Gyre fonts, which I am quite happy > with. The TeX Gyre fonts are a replacement for the 35 URW++ > PostScript fonts, and work quite nicely. I have TeX Gyre fonts in the system. They are listed as: tex-gyre-fonts /usr/share/fonts/tex-gyre/texgyreadventor-bold.otf tex-gyre-fonts /usr/share/fonts/tex-gyre/texgyreadventor-bolditalic.otf tex-gyre-fonts /usr/share/fonts/tex-gyre/texgyreadventor-italic.otf tex-gyre-fonts /usr/share/fonts/tex-gyre/texgyreadventor-regular.otf So is that to somehow include it for groff? How? Jean
Re: [groff] Unicode fonts output
* Deri [2019-08-07 00:00]: > On Tuesday, 6 August 2019 20:33:14 BST Jean Louis wrote: > > * Peter Schaffter [2019-08-06 21:23]: > > > On Tue, Aug 06, 2019, Deri wrote: > > > > Two problems:- > > > > > > > > One, my solution used underscores when it should have used > > > > hyphens, so the magic is U-!! > > > > How do I create U- fonts? > > > > Do I need to use devpdf/util/BuildFoundries somehow? > > > > Is there example how to use it? > > > > Jean > > Hi Jean, > > This is what I did:- > > su - > cd /usr/share/groff/1.22.3/font/devpdf/ > chmod +x util/BuildFoundries > /util/BuildFoundries I did that too, and I am getting these errors below. [/usr/share/groff/1.22.3/font/devpdf] admin-> ./util/BuildFoundries Warning: line 28: Failed to create new font '../devps/AB' for Foundry '' Warning: line 28: Unable to locate font(s) URWGothicL-Demi,a010015l.pfb on the given path(s) Warning: line 29: Failed to create new font '../devps/ABI' for Foundry '' Warning: line 29: Unable to locate font(s) URWGothicL-DemiObli,a010035l.pfb on the given path(s) Warning: line 30: Failed to create new font '../devps/AI' for Foundry '' Warning: line 30: Unable to locate font(s) URWGothicL-BookObli,a010033l.pfb on the given path(s) Warning: line 31: Failed to create new font '../devps/AR' for Foundry '' Warning: line 31: Unable to locate font(s) URWGothicL-Book,a010013l.pfb on the given path(s) Warning: line 32: Failed to create new font '../devps/BMB' for Foundry '' Warning: line 32: Unable to locate font(s) URWBookmanL-DemiBold,b018015l.pfb on the given path(s) Warning: line 33: Failed to create new font '../devps/BMBI' for Foundry '' Warning: line 33: Unable to locate font(s) URWBookmanL-DemiBoldItal,b018035l.pfb on the given path(s) Warning: line 34: Failed to create new font '../devps/BMI' for Foundry '' Warning: line 34: Unable to locate font(s) URWBookmanL-LighItal,b018032l.pfb on the given path(s) Warning: line 35: Failed to create new font '../devps/BMR' for Foundry '' Warning: line 35: Unable to locate font(s) URWBookmanL-Ligh,b018012l.pfb on the given path(s) Warning: line 36: Failed to create new font '../devps/CB' for Foundry '' Copied grops font CB... Warning: line 37: Failed to create new font '../devps/CBI' for Foundry '' Copied grops font CBI... Warning: line 38: Failed to create new font '../devps/CI' for Foundry '' Copied grops font CI... Warning: line 39: Failed to create new font '../devps/CR' for Foundry '' Copied grops font CR... Warning: line 40: Failed to create new font '../devps/EURO' for Foundry '' Copied grops font EURO... Warning: line 41: Failed to create new font '../devps/HB' for Foundry '' Copied grops font HB... Warning: line 42: Failed to create new font '../devps/HBI' for Foundry '' Copied grops font HBI... Warning: line 43: Failed to create new font '../devps/HI' for Foundry '' Copied grops font HI... Warning: line 44: Failed to create new font '../devps/HNB' for Foundry '' Warning: line 44: Unable to locate font(s) NimbusSanL-BoldCond,n019044l.pfb on the given path(s) Warning: line 45: Failed to create new font '../devps/HNBI' for Foundry '' Warning: line 45: Unable to locate font(s) NimbusSanL-BoldCondItal,n019064l.pfb on the given path(s) Warning: line 46: Failed to create new font '../devps/HNI' for Foundry '' Warning: line 46: Unable to locate font(s) NimbusSanL-ReguCondItal,n019063l.pfb on the given path(s) Warning: line 47: Failed to create new font '../devps/HNR' for Foundry '' Warning: line 47: Unable to locate font(s) NimbusSanL-ReguCond,n019043l.pfb on the given path(s) Warning: line 48: Failed to create new font '../devps/HR' for Foundry '' Copied grops font HR... Warning: line 49: Failed to create new font '../devps/NB' for Foundry '' Warning: line 49: Unable to locate font(s) CenturySchL-Bold,c059016l.pfb on the given path(s) Warning: line 50: Failed to create new font '../devps/NBI' for Foundry '' Warning: line 50: Unable to locate font(s) CenturySchL-BoldItal,c059036l.pfb on the given path(s) Warning: line 51: Failed to create new font '../devps/NI' for Foundry '' Warning: line 51: Unable to locate font(s) CenturySchL-Ital,c059033l.pfb on the given path(s) Warning: line 52: Failed to create new font '../devps/NR' for Foundry '' Warning: line 52: Unable to locate font(s) CenturySchL-Roma,c059013l.pfb on the given path
Re: [groff] Unicode fonts output
* Deri [2019-08-07 00:00]: > locate n019003l.pfb # note an alpha ell (not numeric one) before the > .pfb ls /usr/share/grace/fonts/type1/ d05l.afm n019003l.pfb n019023l.afm n019024l.pfb n021004l.afm n021023l.pfb n022003l.afm n022004l.pfb n022024l.afm s05l.pfb d05l.pfb n019004l.afm n019023l.pfb n021003l.afm n021004l.pfb n021024l.afm n022003l.pfb n022023l.afm n022024l.pfb n019003l.afm n019004l.pfb n019024l.afm n021003l.pfb n021023l.afm n021024l.pfb n022004l.afm n022023l.pfb s05l.afm That above probably belongs to other package. > Which should give you the path to the URW fonts. Check if this path is > included in the output of gs -h. It is not, let me see. > If the path is not present in the output of that command you can > manually edit the Foundry file present in the devpdf directory. The > line to alter is:- > > foundry|U|(gs):/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw- > fonts # the URW fonts delivered with ghostscript (may be different) Now I got some fonts with U- generated, thank you. Now I can see the chars č Č ć Ć š Š ž Ž and đ Đ. Not that I got all fonts produced, but it I have few: admin-> ls /usr/share/groff/1.22.3/font/devpdf CB CRenc Foundry~ HI STIU-CBI U-HB U-HR U-TBI U-TR CBI DESC EURO HBHR TB TRU-CI U-HBI U-S U-TI U-ZD CI download Foundry HBI map TBI U-CB U-CR U-HI U-TB util ZD Thank you. Jean
Re: [groff] A poor mans Excel
I am welcoming licensing under GPL and recommend version 3 and any later On October 10, 2019 7:19:06 PM UTC, Ulrich Lauther wrote: >On Thu, Oct 10, 2019 at 03:45:54PM +0100, Ralph Corderoy wrote: >> Hi Ulrich, >> >> > I have written a small perlscript, that preprocesses tables and >allows >> > to >> > >> > - add the values in selected collums >> > - to replace a table entry by the result of an expression >> >> Thanks for letting us know. As Mike said, please show us the code; >> the list's archive will hopefully capture it for others that Google >later. >> >Should I place the code under GPL, if so, which version? > >> On the general topic, to be more spreadsheet like it would need to >allow >> forward references too, e.g. y=x+z where x was earlier, and already >known, >> but z is yet to be seen. And also in-line evaluation, similar to >eqn's >> `delim @@'. >> >I tried to keep it as simple as possible, but useful for my needs, e.g. >- keeping track of costs, payments and profit from a couple of rented >flats >- keeping track of repayments and interest payments for some capital >loaned to some people >- keping track of my monthly income and spending; the rented flats go >into nested subtables >- preparing the annual tax return > >However, in-line evaluation could easily be added when I drop the >syntactical requirement to >have E. at the beginning of a table entry; probably one would then >need some brackets >around E. >A word of caution: >I am NOT an experienced perl programmer. My backgrond is in C++ (and >math). >I tried to keep the code so simple that even I will understand it after >a year. > >> >> As with all these little languages, much of the insight comes from >> trying to apply it to one real task after another. But the problem >> seems tractable. >> >that's, what I did, see above. >Btw, the first version was written in awk, but I missed an >evaluate-statement there. > >Hopefully I will post tomorrow, when I know abou GPL. > >Cheers, > > ulrich
Re: Looking for informations
* Angelo Mattia [2019-10-28 02:04]: > Good morning, > I'd like to know if it is possibile translate the entire groff manual in > italian obtaining some money for this kind of work. > > Angelo Mattia. It is good idea. You could hire somebody to translate it. Jean
Re: Looking for informations
Dear Ingo, Danke, I agree to most of what you said technically. Just one comment: * Ingo Schwarze [2019-10-28 19:48]: > For a program used by a relatively small and technical community > like groff it makes even less sense than for software used by vast > crowds of unskilled people. And for a language like Italian (or > French or German or Hindi) where most speakers can read English as > well, it makes even less sense than for a language like Chinese where > considerable numbers of speakers may not understand English all > that well. For Italian one cannot say that most speakers can read English as well. I have been in more cities in Italy then 99.9% of Italians. I have visited all parts of Italy, all of Sardegna, all cities around and inside Sicily, lived in Rome, Venice, Vicenza, Messina, Agrigento, have seen villages, remote and civilized and primitive areas of Italy. I would not learn Italian would they be able in general to understand English. For French people, I really cannot say, but my impression from meeting French people in Italy is that they hardly speak English. German speakers speak English more than other groups you mentioned, and can read it. They will rather say "I do not speak" even if they do. Hindi are not English speakers. I do not know what you mean and how you measure it, but my last travel in Nagpur, India this month of October, tells me that maybe 5% of them are able to read English. If you only refer to group of people who know computing and software, those people anyway speak English and may not need any translations. Just my impressions. Jean
Re: Looking for informations
* Ingo Schwarze [2019-10-28 21:00]: > Salut Jean, > > Jean Louis wrote on Mon, Oct 28, 2019 at 07:56:21PM +0530: > > > If you only refer to group of people who know computing and software, > > those people anyway speak English and may not need any translations. > > Even though i do travel at times, you have clearly travelled *much* > more than i do, so i probably shouldn't question your observations. > Maybe i'm overestimating the prevalence of English in several countries. > > Either way, you are certainly right that the situation with people > who might wish to use groff is better than on average in the general > population. Also, i expect the situation to be continuously improving > in most countries. I am convinced, due to nature and complexities of groff, that majority of groff users are speaking English. And I find groff simple solution to produce PDF files, but I am myself not using it as much, I have not get well packaged groff in my distribution. But I will come to it. Jean