Coder Social home page Coder Social logo

truecaps's Introduction

truecaps (v0.7)

Unicode TʀᴜᴇCᴀᴘꜱ with LuaLaTeX.

Purpose

Tʜᴇ ᴘᴜʀᴘᴏꜱᴇ ᴏꜰ ᴛʜɪꜱ LᴜᴀLᴀTᴇX ᴘᴀᴄᴋᴀɢᴇ ɪꜱ ᴛᴏ ꜱᴇᴀᴍʟᴇꜱꜱʟʏ ᴘʀᴏᴠɪᴅᴇ ʀᴇᴀʟ Uɴɪᴄᴏᴅᴇ Sᴍᴀʟʟ Cᴀᴘꜱ, ᴜꜱɪɴɢ ᴛʜᴇ Pʜᴏɴᴇᴛɪᴄ Exᴛᴇɴꜱɪᴏɴꜱ Uɴɪᴄᴏᴅᴇ ʙʟᴏᴄᴋ. (U+1D00 .. U+1D7F)

Supported Languages

Albanian • Bosnian • Catalan • Croatian • Czech • Danish • Dutch • English • Esperanto • Estonian • Faroese • Finnish • French • Gaelic • German • Hungarian • Icelandic • Italian • Latvian • Lithuanian • Luxembourgish • Moldovan • Norwegian (Bokmål and Nynorsk) • Polish • Portuguese • Romanian • Romansh • Serbian • Slovak • Slovene • Spanish • Swedish • Turkish • Vietnamese • Welsh • Yoruba • others.

Basically, all letter characters from the "Latin-1 Supplement", the "Latin Extended-A" and B and the "Latin Extended Additional" Unicode blocks are fully supported.

Usage

\usepackage{truecaps} will provide a new command \texttc{…}, while \textsc{…} continues to work as before.

Full Example

\documentclass{article}

\usepackage{truecaps}

\usepackage{pifont}
	\def\mypointer{\raisebox{-1ex}{\llap{\LARGE\ding{43}~}}}

\usepackage{fontspec}
	\setmainfont[Ligatures={TeX,Common}]{Charis SIL}

\begin{document}

\noindent\texttc{\mypointer The purpose of this LaTeX package is to seamlessly
 provide real Unicode Small Caps, using the Phonetic Extensions Unicode
 block.}

\vspace{1.5em}
\noindent\textsc{\mypointer Classic Small Caps continue to work as before.}

\end{document}

Known Issues

The glyphs produced by truecaps are from Unicode's “Phonetic Extensions” block. They were never meant to be used as small caps the way we use them here. CEDILLAS and OGONEKS can look ugly (ᴀ̨ ʜ̧ ᴋ̧ ᴊ̂ ᴊ̌ ɴ̧ ɪ̨) This is especially true if you stack them (Looking at you, HORN!) (ᴏ̛̀ ᴏ̛́ ᴏ̛̉ ᴏ̛̃).

Some of the language files (Turkish) need more work.

Todo

  • Test suite for common Latin (European) languages (>80% done)
  • Take care of punctuation and numbers (OTF features?)
  • Look into support for more exotic Latin languages, perhaps some other African or Native American writing systems
  • "silent" option "silent" to disable warnings (Letters X, Þ and others will have to remain unsupported for the foreseeable future)
  • "oldstylesharps" option, to have ß written as SZ instead of SS
  • Sanity checks for missing glyphs?
  • Normalize input? (= use only pre-composed glyphs)
  • Simplify and optimize code, remove redundancies
  • Some more documentation and examples
  • Submit v1.0 to CTAN

History

  • v0.7 All usable characters (Latin-1 Supplement; Latin Extended-A, B; Latin Extended Additional) are fully supported now.
  • v0.6 Internal code cleanup continues. Added support for Finnish, Slovenian, Icelandic (partial), Polish.
  • v0.5 Reversed the command structure: textsc{…} continues to work as expected, texttc{…} becomes a new command.
  • v0.4 Dropped XeLaTeX compatibility. Added support for Italian, Swedish, Danish, Icelandic, Serbian, Croatian.
  • v0.3 Full support for Czech, Slovenian, Hungarian, Spanish and Catalan.
  • v0.2 Full support for English, German and French.
  • v0.1 Initial fork from निरंजन's "unisc.sty" v0.1 (2022-04-21). https://puszcza.gnu.org.ua/projects/unisc

truecaps's People

Contributors

igreil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.