Getting rid of proprietary fonts

2012-01-22 Thread Nadav Har'El
Hi, I have an 80 page OpenOffice document (Hspell's niqqudless.odt)
which I wrote, shamefully, assuming Microsoft's TrueType fonts.

Now, I wanted to switch this document to use only free fonts, such as
the Culmus fonts for Hebrew, Nimbus Sans for English, and the DejaVu
fonts for other languages in this document (Arabic, Turkish, Greek, Russian,
etc.). The result will not only be freeer - it actually looks better!

Starting the transformation was easy - I modified the few main paragraph
and character styles that I was using, and in a few minutes, most of the
document was converted to the free fonts.

But my problem is that the long document *still* uses the non-free fonts in
some places. I can see this if I export the document to PDF, and run pdffonts
on it. I indeed found a bunch of places where this happened (e.g., I
explicitly used a certain font on some word, instead of relying on a style),
but couldn't find *ALL* of them, so my document still depends on these
non-free fonts.

I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?

As a last resort, I plan to open the .odt file and read the XML where
this information has to exist - but before I do that, I wonder if
someone knows an easier OpenOffice option, or tool, exists.

Thanks,
Nadav.

-- 
Nadav Har'El|Sunday, Jan 22 2012, 
n...@math.technion.ac.il |-
Phone +972-523-790466, ICQ 13349191 |Earth First! We can strip-mine the other
http://nadav.harel.org.il   |planets later...

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Dotan Shavit

On 01/22/2012 04:34 PM, Nadav Har'El wrote:

Hi, I have an 80 page OpenOffice document (Hspell's niqqudless.odt)
which I wrote, shamefully, assuming Microsoft's TrueType fonts.

Now, I wanted to switch this document to use only free fonts, such as
the Culmus fonts for Hebrew, Nimbus Sans for English, and the DejaVu
fonts for other languages in this document (Arabic, Turkish, Greek, Russian,
etc.). The result will not only be freeer - it actually looks better!

Starting the transformation was easy - I modified the few main paragraph
and character styles that I was using, and in a few minutes, most of the
document was converted to the free fonts.

But my problem is that the long document *still* uses the non-free fonts in
some places. I can see this if I export the document to PDF, and run pdffonts
on it. I indeed found a bunch of places where this happened (e.g., I
explicitly used a certain font on some word, instead of relying on a style),
but couldn't find *ALL* of them, so my document still depends on these
non-free fonts.

I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?


Hmm... Save as HTML ?

#


As a last resort, I plan to open the .odt file and read the XML where
this information has to exist - but before I do that, I wonder if
someone knows an easier OpenOffice option, or tool, exists.

Thanks,
Nadav.



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Constantine Shulyupin
You can gunzip odp file and grep xml sources.

On Sun, Jan 22, 2012 at 4:34 PM, Nadav Har'El n...@math.technion.ac.ilwrote:

 Hi, I have an 80 page OpenOffice document (Hspell's niqqudless.odt)
 which I wrote, shamefully, assuming Microsoft's TrueType fonts.

 Now, I wanted to switch this document to use only free fonts, such as
 the Culmus fonts for Hebrew, Nimbus Sans for English, and the DejaVu
 fonts for other languages in this document (Arabic, Turkish, Greek,
 Russian,
 etc.). The result will not only be freeer - it actually looks better!

 Starting the transformation was easy - I modified the few main paragraph
 and character styles that I was using, and in a few minutes, most of the
 document was converted to the free fonts.

 But my problem is that the long document *still* uses the non-free fonts in
 some places. I can see this if I export the document to PDF, and run
 pdffonts
 on it. I indeed found a bunch of places where this happened (e.g., I
 explicitly used a certain font on some word, instead of relying on a
 style),
 but couldn't find *ALL* of them, so my document still depends on these
 non-free fonts.

 I wonder if anybody knows how I can use OpenOffice, or some other tool,
 to find *where* in the document a certain font is being used?

 As a last resort, I plan to open the .odt file and read the XML where
 this information has to exist - but before I do that, I wonder if
 someone knows an easier OpenOffice option, or tool, exists.

 Thanks,
 Nadav.

 --
 Nadav Har'El|Sunday, Jan 22
 2012,
 n...@math.technion.ac.il
 |-
 Phone +972-523-790466, ICQ 13349191 |Earth First! We can strip-mine the
 other
 http://nadav.harel.org.il   |planets later...

 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il




-- 
Constantine Shulyupin
http://www.MakeLinux.co.il/
Embedded Linux Systems,
Device Drivers, TI DaVinci
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Matan Ziv-Av

On Sun, 22 Jan 2012, Nadav Har'El wrote:


I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?


Did you try OO's find and replace dialog? It seems to be able to 
search by format/attributes (hidden behind a more options button, at 
least in libreoffice-writer-3.4.4.2 in Fedora).



--
Matan Ziv-Av. ma...@svgalib.org



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Nadav Har'El
On Sun, Jan 22, 2012, Dotan Shavit wrote about Re: Getting rid of proprietary 
fonts:
 I wonder if anybody knows how I can use OpenOffice, or some other tool,
 to find *where* in the document a certain font is being used?
 
 Hmm... Save as HTML ?

Thanks for the idea. This is ugly, and tedious, but it actually works
and I finally was able to find and remove all the references to those
nasty non-free fonts.

I still wonder if there isn't a much easier way. Some search font form
in OpenOffice, or a utility to turn all text in some font to pink ;-)

Thanks,
Nadav.

-- 
Nadav Har'El|Sunday, Jan 22 2012, 
n...@math.technion.ac.il |-
Phone +972-523-790466, ICQ 13349191 |Attention: There will be a rain dance
http://nadav.harel.org.il   |Friday night, weather permitting.

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Nadav Har'El
On Sun, Jan 22, 2012, Matan Ziv-Av wrote about Re: Getting rid of proprietary 
fonts:
 On Sun, 22 Jan 2012, Nadav Har'El wrote:
 
 I wonder if anybody knows how I can use OpenOffice, or some other tool,
 to find *where* in the document a certain font is being used?
 
 Did you try OO's find and replace dialog? It seems to be able to
 search by format/attributes (hidden behind a more options button,
 at least in libreoffice-writer-3.4.4.2 in Fedora).

Thanks - even after you told me about this option, it was hard to
find :-)

But I don't understand what this does... All I can check is font -
where do I tell it *which* font to look for? I tried putting Arial in
the text box, choosing the font button, and then searching. It found
nothing. Maybe I, or you, or both of us, are misunderstanding what this
dialog is supposed to be doing...

-- 
Nadav Har'El|Sunday, Jan 22 2012, 
n...@math.technion.ac.il |-
Phone +972-523-790466, ICQ 13349191 |You do not need a parachute to skydive.
http://nadav.harel.org.il   |You only need one to skydive twice.

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Matan Ziv-Av

On Sun, 22 Jan 2012, Nadav Har'El wrote:


On Sun, Jan 22, 2012, Matan Ziv-Av wrote about Re: Getting rid of proprietary 
fonts:

On Sun, 22 Jan 2012, Nadav Har'El wrote:


I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?


Did you try OO's find and replace dialog? It seems to be able to
search by format/attributes (hidden behind a more options button,
at least in libreoffice-writer-3.4.4.2 in Fedora).


Thanks - even after you told me about this option, it was hard to
find :-)

But I don't understand what this does... All I can check is font -
where do I tell it *which* font to look for? I tried putting Arial in
the text box, choosing the font button, and then searching. It found
nothing. Maybe I, or you, or both of us, are misunderstanding what this
dialog is supposed to be doing...


Don't look in Attributes, but in Format. Make sure that you only set 
the font family to search in CTL and not in Western, as if there is 
a family (or another condition) in both, the search if for and of both 
conditions.



--
Matan Ziv-Av. ma...@svgalib.org



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Orna Agmon Ben-Yehuda
On Sun, Jan 22, 2012 at 4:34 PM, Nadav Har'El n...@math.technion.ac.ilwrote:

 Hi, I have an 80 page OpenOffice document (Hspell's niqqudless.odt)
 which I wrote, shamefully, assuming Microsoft's TrueType fonts.

 Now, I wanted to switch this document to use only free fonts, such as
 the Culmus fonts for Hebrew, Nimbus Sans for English, and the DejaVu
 fonts for other languages in this document (Arabic, Turkish, Greek,
 Russian,
 etc.). The result will not only be freeer - it actually looks better!

 Starting the transformation was easy - I modified the few main paragraph
 and character styles that I was using, and in a few minutes, most of the
 document was converted to the free fonts.

 But my problem is that the long document *still* uses the non-free fonts in
 some places. I can see this if I export the document to PDF, and run
 pdffonts
 on it. I indeed found a bunch of places where this happened (e.g., I
 explicitly used a certain font on some word, instead of relying on a
 style),
 but couldn't find *ALL* of them, so my document still depends on these
 non-free fonts.

 I wonder if anybody knows how I can use OpenOffice, or some other tool,
 to find *where* in the document a certain font is being used?


I can suggest some ideas, since I spent today hunting fonts in a pdf
document, and I know you are an xfig fan. I found that filling with pattern
in xfig creates a type 3 font (use filled to get rid of this), and that the
default xfig fonts are postscript fonts, the default of which is times new
roman (use latex fonts to get rid of this, and set the special flag flag
to special. I could not get rid of these fonts unless I changed the font
in the figure and exported the figure again. For the pattern, I had to
re-edit each patterned object, and this included a thick dashed line.


 As a last resort, I plan to open the .odt file and read the XML where
 this information has to exist - but before I do that, I wonder if
 someone knows an easier OpenOffice option, or tool, exists.

 Thanks,
 Nadav.

 --
 Nadav Har'El|Sunday, Jan 22
 2012,
 n...@math.technion.ac.il
 |-
 Phone +972-523-790466, ICQ 13349191 |Earth First! We can strip-mine the
 other
 http://nadav.harel.org.il   |planets later...

 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il




-- 
Orna Agmon Ben-Yehuda.
http://ladypine.org
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Amichai Rotman
Isn't the settings dialogue for font replacement is for? I am not in front
of it now, but I remember there is a font substitution setting somewhere...

Amichai.
 On Jan 22, 2012 5:35 PM, Nadav Harapos;El n...@math.technion.ac.il
wrote:
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Michael Vasiliev

On 01/22/2012 04:34 PM, Nadav Har'El wrote:

I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?

Not directly an answer to the question asked, but what the heck, here 
for the history:


http://extensions.services.openoffice.org/project/TestFonts

--
Sincerely Yours,
Michael Vasiliev

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Steve Litt
On Sunday, January 22, 2012 02:09:30 PM Matan Ziv-Av wrote:
 On Sun, 22 Jan 2012, Nadav Har'El wrote:
  I wonder if anybody knows how I can use OpenOffice, or some other
  tool, to find *where* in the document a certain font is being
  used?
 
 Did you try OO's find and replace dialog? It seems to be able to
 search by format/attributes (hidden behind a more options button,
 at least in libreoffice-writer-3.4.4.2 in Fedora).

And just before that, look through all the paragraph styles and 
character styles to see if one of them uses a nonfree font.

SteveT


* My new 99 cent Kindle book  :  http://www.amazon.com/dp/B006QTBLA2 *
* Steve Litt  :  http://www.troubleshooters.com  *

.

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Getting rid of proprietary fonts

2012-01-22 Thread Michael Vasiliev

On 01/23/2012 02:31 AM, Michael Vasiliev wrote:

On 01/22/2012 04:34 PM, Nadav Har'El wrote:

I wonder if anybody knows how I can use OpenOffice, or some other tool,
to find *where* in the document a certain font is being used?

Not directly an answer to the question asked, but what the heck, here 
for the history:


http://extensions.services.openoffice.org/project/TestFonts

My mistake, sorry (I blame late-night posting), it does exactly what's 
asked. You can select a font and search for all occurrences of said font 
in the document.


--
Cheers,
MichaelV

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il