I want to optimize my CV to be ATS-friendly. Modern Applicant Tracking Systems use programmable stupidity to parse resumes and decide, whether present them to a human reader.
To my surprise I discovered that the engine LinkedIn uses accepts from - to, but not from -- to. That makes my beautiful Experience and Education section a lump of a madman gibberish instead of well-separated entries. That does not help when you are looking for a job. ;)
To address the issue I have tried the approach from https://tex.stackexchange.com/a/442814/123888 :
FROM \protect\BeginAccSupp{ActualText=-}--\protect\EndAccSupp{} TO
that hides an n-dash form pdftotext, but not from pdf2txt.py.
As I have commented the horse is still there.
The other problem is string replacement. I decided to define a macro \cvdates with tex code from https://tex.stackexchange.com/a/213950/123888 (other answers does not work with n-dash):
\def\replace#1#2#3{%
\def\tmp##1#2{##1#3\tmp}%
\tmp#1\stopreplace#2\stopreplace}
\def\stopreplace#1\stopreplace{}
\newcommand{\cvdates}[1]{\replace{#1}{--}{\protect\BeginAccSupp{ActualText=-}--\protect\EndAccSupp{}}}
But then with
\cvdates{FROM2 -- TO2}
\cvdates{FROM3 --- TO3}
I get
FROM2 - TO2
FROM3 -- TO3
when I run pdftotext test.pdf -
One possible solution I can think about is to display from -- to to humans as graphics with an associated invisible text (How do I create an invisible character?). But I have no idea how can I remove machine-readable text from from -- to.
-), which violates typography rules. I want to present minuses to ATS and dashes (--) to humans. – abukaj Mar 22 '23 at 21:38$-$produce something that AST handles without going crazy? If so, and you're willing to accept a solution that requires two different outputs, I have an idea. I can't think of any mechanism to produce a single output that will satisfy both eyeballs and AST. – barbara beeton Mar 22 '23 at 22:04-. The problem is humans see it as a minus, not dash. Possible solution is to have--as graphics with-in the accompanying text. – abukaj Mar 24 '23 at 07:28