diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-23 19:08:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-23 19:08:19 (GMT) |
commit | c3ee766d0ad5721c753581e7f87026614c0730e1 (patch) | |
tree | 7fa6ad9bbb5c3fcd8938bec8fea9b1b0a36e397f /src/latexgen.cpp | |
parent | 200353a0886f5ee20101b7af4b55af498adc495f (diff) | |
download | Doxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.zip Doxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.tar.gz Doxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.tar.bz2 |
Improved robustness of the emoji feature
Changes:
- Use of `@emoji name` instead of `:name:`
- Support only GitHub emojis (i.e. without spaces or special characters in the name)
- Provided script to download images for LaTeX support.
- XML output now has <emoji> tag with name an unicode sequence.
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 94c3dd1..b860195 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -568,11 +568,10 @@ static void writeDefaultHeaderPart1(FTextStream &t) emojiDir = substitute(emojiDir,"\\","/"); t << "% Arguments of doxygenemoji:\n" "% 1) ':<text>:' form of the emoji, already \"LaTeX\"-escaped\n" - "% 2) unicode of the emoji inlorm like: 'U+1F603' or 'U+0031U+FE0FU+20E3' depending on the emoji\n" - "% 3) file name in form like: '1F603' or '0031-FE0F-20E3' depending on the emoji\n" + "% 2) file with the name of the emoji without the .png extension\n" "% in case image exist use this otherwise use the ':<text>:' form\n"; - t << "\\newcommand{\\doxygenemoji}[3]{%\n" - " \\IfFileExists{" << emojiDir << "/#3.png}{\\raisebox{-0.1em}{\\includegraphics[height=0.9em]{" << emojiDir << "/#3.png}}}{#1}%\n" + t << "\\newcommand{\\doxygenemoji}[2]{%\n" + " \\IfFileExists{" << emojiDir << "/#2.png}{\\raisebox{-0.1em}{\\includegraphics[height=0.9em]{" << emojiDir << "/#2.png}}}{#1}%\n" "}\n"; // Define page & text layout |