lhplain's Introduction
This repo contains dvipdf and supporting files. ----------------------------------------------------------------------------------- https://www.ams.org/arc/tex/amsfonts.zip https://mirrors.ctan.org/fonts/ps-type1/cm-super.zip Copy *.pfb files from directories containing cmr10.pfb and sfrm1000.pfb to lhplain/ ----------------------------------------------------------------------------------- 1) xxd -p -c1 /usr/lib/libgs.so.9.26 >/tmp/xxd perl -le '@a=<>;chop@a;for$i(0..$#a-1){print"^",$i+1,"\t"if$a[$i]eq"86"&&$a[$i+1]eq"55"}' /tmp/xxd >/tmp/num # (byte order depends on processor) nl /tmp/xxd | sed 's/^\s\+//' | grep --color=always -C5 -f /tmp/num >/tmp/out objdump -d /usr/lib/libgs.so.9.26 | grep -C3 '\$0x5586,' # 21894 (GS_C_PDF_MAX_GOOD_GLYPH) less -R /tmp/out # determine LINENUM accordingly to output from previous command and put it to next command sed -i 'LINENUM{N;s/.*/00\n00/}' /tmp/xxd # change to zero xxd -r -p /tmp/xxd /tmp/libgs.so.9.26 sudo cp /tmp/libgs.so.9.26 /usr/lib/libgs.so.9.26 2) sudo sed -i 's/ minus\b//;/16#002D/s/$/ minus/' /usr/share/ghostscript/9.26/Resource/Decoding/Unicode sudo sed -i 's/ quoteright\b//;/16#0027/s/$/ quoteright/' /usr/share/ghostscript/9.26/Resource/Decoding/Unicode sudo sed -i 's/ quoteleft\b//;/16#0060/s/$/ quoteleft/' /usr/share/ghostscript/9.26/Resource/Decoding/Unicode For example: \nopagenumbers \font\tt=cmtex10 \tt -`' \bye This is the diff of PDF file before and after doing 1 (*): +13 0 obj +<</Length 277>>stream +/CIDInit /ProcSet findresource begin +12 dict begin +begincmap +/CMapType 2 def +/CMapName/R13 def +1 begincodespacerange +<00><ff> +endcodespacerange +3 beginbfrange +<27><27><2019> +<2d><2d><2212> +<60><60><2018> +endbfrange +endcmap +CMapName currentdict /CMap defineresource pop +end end + +endstream +endobj 8 0 obj -<</BaseFont/SOCCVA+CMTEX10/FontDescriptor 9 0 R/Type/Font +<</BaseFont/SOCCVA+CMTEX10/FontDescriptor 9 0 R/ToUnicode 13 0 R/Type/Font This is the diff of PDF file before and after doing 2 (*): -<27><27><2019> -<2d><2d><2212> -<60><60><2018> +<27><27><0027> +<2d><2d><002d> +<60><60><0060> (*) - add -dCompressFonts=false to ps2pdf in lhplain/dvipdf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.