Archive

Archive for February, 2015

Poem: I am from the nation whose children frighten him!

February 9, 2015 Leave a comment

Who does such a thing? I do not have words to describe my emotions.

Below are the lyrics of a tribute that ISPR Pakistan released in the days following the catastrophe. The translation of the verses you hear in the audio version follows the (Roman) Urdu text. The chorus translates to I am from the nation whose children frighten him; some enemy he is, he who targets children!

Bata kia puchta hai wo, kitaboon mein miloon ga mein,
Kiye maa se hain jo maine ke waadon mein miloon ga mein

What is he searching for, I live on in books
I will be found in the promises I made to my mother

Main aaney wala kal hoon wo mujhe kyun aaj marey ga,
Ye uska vehem hoga kay wo aisey khwaab marey ga

I am the future, how can he slay me today?
He has to be delusional if he believes he can kill such dreams

Tumhara khoon hoon na isliye acha lara hoon mein,
Bata aya hoon dushman ko kay us se to bara hoon mein

I am your blood, hence I’ve fought valiantly
I have proven to the enemy that I am better than him

Main aisi qoum se hoon jiske wo bachon se darta hai,
Bara dushman bana phirta hai jo bachon se larta hai

I am from the nation whose children frighten him
Some enemy he is, he who targets children

To jab atey hue mujhko galey tumne lagaya tha,
Aman’Allah kahan mujhko mera beta bulaya tha

So when you hugged me as I departed
You did not wish me Aman’Allah

Khuda kay amn ki raah mein kahan se agaya tha wo,
Jahan tum choomti theen maa wahan tak agaya tha wo

How did he cross into God’s path of peace?
He desecrated my forehead where you used to kiss me, mother

Main aisi qoum se hoon jiske wo bachon se darta hai,
Bara dushman bana phirta hai jo bachon se larta hai

I am from the nation whose children frighten him
Some enemy he is, he who targets children

Mujhe jana para hae per mera bhai kare ga aab,
Mein jitna na parha wo tab mera bhai parhe ga aab

Although I have been forced to leave, my brother will take my place
He will continue the education that I have been deprived of

Abhi baba bhi baki hein kahan tak ja sako ge tum,
Abhi wada raha tum se yahan na aa sako ge tum

My father is alive, you won’t find refuge anywhere
Be rest assured, you won’t come here, ever again

Main aisi qoum se hoon jiske wo bachon se darta hai,
Bara dushman bana phirta hai jo bachon se larta hai

I am from the nation whose children frighten him
Some enemy he is, he who targets children!

Advertisements
Categories: poetry

Embed Fonts in PDFs

February 3, 2015 Leave a comment

It is typical of IEEE/ACM conferences to ask for pdf files with embedded fonts. When the submission deadline is fast approaching, it is an unpleasant experience to see a prompt saying that the submission does not meet the requirement of embedded fonts.

Until 2014, pdflatex (as part of MacTeX) was configured not to embed fonts by default. There is a simple solution to this problem. Run the following commands and any pdf generated with pdflatex will have fonts embed in them.

$ updmap --setoption pdftexDownloadBase14 true
$ updmap

pdffonts is a nifty tool, which can be used to list the fonts embedded in a pdf document. Below is a log of the outputs before and after I changed the configuration.

$ pdffonts test.pdf                                                                                                        
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
PQJFKD+CMR17                         Type 1            yes yes no       4  0
OIKBLN+CMR12                         Type 1            yes yes no       5  0
VDNHSL+CMR10                         Type 1            yes yes no       6  0
Times-Roman                          Type 1            no  no  no       7  0
Helvetica                            Type 1            no  no  no       8  0
Courier                              Type 1            no  no  no       9  0
IAPCTB+URWPalladioL-Roma             Type 1            yes yes no      10  0
IQSCJF+URWChanceryL-MediItal         Type 1            yes yes no      11  0
ZINFER+CenturySchL-Roma              Type 1            yes yes no      12  0
SXEYYX+URWBookmanL-Ligh              Type 1            yes yes no      13  0

$ updmap --setoption pdftexDownloadBase14 true
$ updmap
...

$ pdffonts test.pdf                                                                                                        
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
PQJFKD+CMR17                         Type 1            yes yes no       4  0
OIKBLN+CMR12                         Type 1            yes yes no       5  0
VDNHSL+CMR10                         Type 1            yes yes no       6  0
RFZQJL+NimbusRomNo9L-Regu            Type 1            yes yes no       7  0
KRXWNA+NimbusSanL-Regu               Type 1            yes yes no       8  0
IJPKSY+NimbusMonL-Regu               Type 1            yes yes no       9  0
IAPCTB+URWPalladioL-Roma             Type 1            yes yes no      10  0
IQSCJF+URWChanceryL-MediItal         Type 1            yes yes no      11  0
ZINFER+CenturySchL-Roma              Type 1            yes yes no      12  0
SXEYYX+URWBookmanL-Ligh              Type 1            yes yes no      13  0

We can see that all the fonts are embedded in the pdf.

pdffonts is available as part of xpdf. It is available as a Homebrew recipe and can be installed using the following command:

$ brew install xpdf
...

An alternate solution is to open the pdf file in Preview and export or print as a pdf. The resulting file will have embedded fonts.

If you have figures as eps files, then those files may not have embedded fonts as well. You can convert them to pdf while embedding fonts. (pdflatex will not embed fonts in figures that were created by other software.)

ps2pdf13 -dPDFSETTINGS=/prepress figure-without-fonts.eps figure-with-fonts.pdf
Categories: best practices Tags: