# Conflicts:
# doc/index.doc
# src/cmdmapper.h
# src/docparser.cpp
# src/docparser.h
# src/doctokenizer.h
# src/doctokenizer.l
# src/translator_am.h
This command (`\showdate`) is also useful for the internal doxygen documentation at the gh-pages as here the `HTML_TIMESTAMP` is set to `NO` for "Disable HTML_TIMESTAMP in generated output to reduce gh-pages changes"
Show a specified or the current date in a specified format.
This format translates also the name of the weekday and the name of the month to the names used according to the `OUTPUT_LANGUAGE` setting.
When the `<data>` is not specified the current date is used and this can be used for e.g. automatically adjusting the copyright message in the documentation (see e.g. `index.doc`)
(The names are derived by means of a python script from the python distribution).
When looking at the JavaDoc definition we see:
```
{@link package.class#member label}
Inserts an in-line link with visible text label that points to the documentation for the specified package, class or member name of a referenced class.
```
and
```
{@linkplain package.class#member label}
Identical to {@link}, except the link's label is displayed in plain text than code font.
```
- setting a `{@link ...}` in code font
- implementing `{@linkplain ...}` (JavaDoc @linkplain is not recognized (Origin: bugzilla #688387))
In the JavaDoc documentation we see:
```
{@code text}
Equivalent to <code>{@literal}</code>.
```
and
```
{@literal text}
Displays text without interpreting the text as HTML markup or nested javadoc tags
```
These commands have been implemented by means of transforming them into doxygen commands.
This implementation also:
- the `{@literal ..}` command, #4953 JavaDoc @literal is not recognized (Origin: bugzilla #688386)
- #4949 JavaDoc @code makes a block element instead of inline element (Origin: bugzilla #688381)
- #4952 JavaDoc @code generates link (Origin: bugzilla #688385)
When we have e.g. ` ``` ` doxygen translates this to a `\code` .. `\endcode` block and this gives some hard to understand warnings when we have in the fenced block the text `\endcode`.
(analogous for a 4 space extra indentation that is seen as a `\verbatim` block). By defining new, internal, commands for this the problem can be overcome.
In Python there is also an under the hood conversion and this benefits also from these new commands.
A HTML tag `<details>` gives the possibility to specifies additional details that the user can open and close on demand.
See e.g.: https://www.w3schools.com/tags/tag_details.asp
Found indifferent Fossies pakages.
When having a problem like:
```
/// \file
/**
* aaa
*/
typedef enum {
/** bbb
* \line_9
* @if INTERNAL
* \line_11
* @endif
* \line_13
*/
BS
} bsb_type_enum;
```
with Doxyfile:
```
JAVADOC_AUTOBRIEF = NO
ENABLED_SECTIONS = INTERNAL
GENERATE_LATEX = NO
INPUT=b.h
QUIET = YES
```
we get the warnings:
.../b.h:9: warning: Found unknown command '\line_9'
.../b.h:10: warning: Found unknown command '\line_11'
.../b.h:11: warning: Found unknown command '\line_13'
```
so the line number in the warning is incorrect for the lines after the `if` and `endif` command.
Looking at the output of the commentscanner we see:
```
CommentScanner: .../b.h:8
output=[
brief=[line=-1
]
docs=[line=8
bbb
\line_9
\line_11
\line_13]
inbody=[line=-1
]
]
```
in other words a number of lines "disappear".
As the `if` command is an inline command it is not possible to just replace e.g. the `if` line wit an empty line (as this would be seen as a paragraph break).
With this patch a new internal command `iline` is defined with which it is possible to overrule in the documentation tokenizer the line counter.
This commit changes the following in relation to string use
- The implicit convert from 'QCString' to 'const char *' is removed
- Strings parameters use 'const QCString &' as much as possible in favor
over 'const char *'
- 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())'
- data() now always returns a valid C-string and not a 0-pointer.
- when passing a string 's' to printf and related functions 'qPrint(s)' is
used instead of 's.data()'
- for empty string arguments 'QCString()' is used instead of '0'
- The copy() operation has been removed
- Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and
'qstrcmp(a,b)<0' has been replaced by 'a<b'
- Parameters of string type that were default initialized with '= 0' are
no initialized with '= QCString()'
Adding for consistency with `\*only`, `\htmlincclude` and `\latexinclude` the commands: `\rtfinclude`, `\docbookinclude`, `\maninclude` and `\xmlinclude`
When having a problem like:
```
/** \file */
/**
* The fie
*
* @form: the new format
* @content: the content of the form
*
* Sets @form content to be @content.
*
* \f$ \alpha \f$ \f[ \beta \f]
*/
void fie(char *form, char *content);
```
we get warnings like:
```
.../aa.h:5: warning: Wrong formula id -1
.../aa.h:6: warning: Found unknown command '\content'
.../aa.h:8: warning: Wrong formula id -1
.../aa.h:8: warning: Found unknown command '\content'
```
The `@form:` is in RST analogue to the doxygen `@param form` but not understood by doxygen.
The result is that it is seen as an formula as doxygen translates the formula commands to `\form`.
For `@content` is handled properly as this is not a doxygen command.
In this patch a more unique name is chosen so these type of conflicts don't appear (that easy). The resulting, better, warnings are now:
```
.../aa.h:5: warning: Found unknown command '\form'
.../aa.h:6: warning: Found unknown command '\content'
.../aa.h:8: warning: Found unknown command '\form'
.../aa.h:8: warning: Found unknown command '\content'
```
Add '<thead>', '<tbody>' and '<tfoot>' HTML tags but ignore them for the time being.
In case we have a table like:
```
<table>
<thead>
<tr>
<th>Col 1</th>
<th>Col 2</th>
</tr>
</thead> <tbody>
<tr>
<td>Row 1 Col 1</td>
<td>Row 1 Col 1</td>
</tr>
</tbody>
</table>
```
the output would be garbled, now we get a table.
Github does not support the `<u>` tag for underlined text, in HTML there exists the tag `<ins>`. On https://www.w3schools.com/tags/tag_ins.asp is written:
The `<ins>` tag defines a text that has been inserted into a document.
Browsers will normally strike a line through deleted text and underline inserted text.
Most browsers will display the `<ins>` element with the following default values:
```
ins {
text-decoration: underline;
}
```
analogous there exists the tag `<del>` (https://www.w3schools.com/tags/tag_del.asp):
The `<del>` tag defines text that has been deleted from a document.
Browsers will normally strike a line through deleted text and underline inserted text.
Most browsers will display the `<del>` element with the following default values:
```
del {
text-decoration: line-through;
}
```
Definitions analogue to the underline and strike through tag the implementation for the other formats has been chosen.
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.
This command writes an equal sign (`=`) to the output. This character sequence has to be escaped in some cases, because it is used in Markdown header processing.
Added issue support for the different output types.
- Sources of the emoji
- based on the Unicode definition v11.0:
- https://unicode.org/emoji/charts/full-emoji-list.html
- http://www.unicode.org/emoji/charts/full-emoji-modifiers.html
- github definition list:
- https://api.github.com/emojis
- Input of emoji: :<test>: with the restriction that direct after the opening colon and direct before the closing colon no space is allowed
- doctokinizer.l, adding detection of emoji and new command `\:`
- doktokinizer.h, adding "word" type TK_EMOJI
- docparser.* handling of new "word" type TK_EMOJI (analogous to HTML Entities), handling of new command `\:`
- cmdmapper,cpp, cmdmapper.h, adding new command `\:`
- htmlentity.cpp, adding new definition required for new command `\:`
- Emoji
- emoji.cpp, emoji.h, class for handling emoji analogous to HTML Entities, including small directions on how to update the code when a new emoji is defined. Not everything is converted to lowercase for comparison and accents are removed.
- doxygen.cpp possibility to create list of supported emoji
- handling emoji for output types (analogous to HTML Entities), see documentation for different output types
- docparser.h, *docvisitor.*
- rtfdocvisitor.* converting output to UTF-16 (based on http://scruss.com/blog/2017/03/12/in-the-unlikely-event-you-need-to-represent-emoji-in-rtf-using-perl/)
- latexdocvisitor.*, handling arguments for emoji in output (see also latexgen.cpp for meaning of the arguments of doxygenemoji).
- latexgen.cpp, adding new latex command for doxygen (doxygenemoji) and prevent too many open file (code before documentclass)
- config.xml, definition of `LATEX_EMOJI_DIRECTORY` with path to images required for LaTeX output
- Documentation:
- emojisup.doc, user description
- commands.doc, description of new command `\:`
- index.doc, reference to emoji chapter
- xmlcmds.doc, adjust reference to next chapter as a new chapter is added
- Doxyfile*, adding emoji chapter
Build system
- CMakeLists.txt adding new files
Added underline possibility and strike through possibility for the different output formats insofar it is possible (other similar possibilities are not always possible for all output formats either).
This patch makes the handling of the \snippet and other commands consistent between the different languages (no line numbers anymore with python) and also introduces analogous to \includelineno the command \snippetlineno.
Some non relevant changes:
- *code.l Calculation of the end line was incorrect, in case of a snippet the end line was the number of lines of the snippet and not reltive to the start line.
- *code.l made consistent over the different laguages, enabling exBlock and inlineFragment
- testing/indexpage.xml in test 14 the \snippet command was used with python and giving line numbers, linenumbers are now gone (consistency)
Purpose to have the possibility to have repeating texts not repeated in the comments.
The commands include and snippet introduce code blocks whilst the commands includedoc and snippetdoc inclode the text as is and it will be parsed by doxygen.
This patch adjusts some problems regarding image sizes in LaTeX output of doxygen (a.o. Bug 738299 - When using msc or PlantUML, the default latex for the created image should include [width=\linewidth]) this has been done is such a way that all the "image" commands (i.e. image, dot, dotfile, msc, mscfile, diafile, startuml) operate in a similar way / have the same possibilities.
- commands.doc
Adjusted documentation to reflect changes.
- cmdmapper.cpp
- cmdmapper.h
Added utility function to map command id back to command name
- doctokenizer.h
- doctokenizer.l
Handle Caption and Size indication. Required also that some other rules had to be tightened a bit (like usage of {} in startuml and usage of "" for captions. This was already described in the documentation in this way).
- docparser.cpp
- docparser.h
Created routine to uniformly handle the Caption and size indications and store them in a general way.
- latexgen.cpp
Replaced graphicx package by adjustbox package (includes graphicx) to support "min width" etc.
- doxygen.sty templates\latex
Added commands to make commands with and without caption behave similar.
- docbookvisitor.cpp
- docbookvisitor.h
- htmldocvisitor.cpp
- latexdocvisitor.cpp
- latexdocvisitor.h
- printdocvisitor.h
- xmldocvisitor.cpp
Created routine to uniformly handle the Caption and size indications in a general way.
- indexpage.xml (testing\022)
- indexpage.xml (testing\031)
- class_receiver.xml (testing\037)
- class_sender.xml (testing\037)
Adjusted example output.