Commit Graph

46885 Commits

Author SHA1 Message Date
Juergen Spitzmueller
2e408d2fdc Do not output empty statement in lyx2lyx reversion 2024-09-17 15:53:18 +02:00
Scott Kostyshak
e3d26bcb5f Uninvert ja UserGuide systemF tests
These exports pass thanks to Jürgen's recent fixes, including
working around a language nesting issue.
2024-09-17 11:12:10 +02:00
Juergen Spitzmueller
71e314c247 ja/UserGuide: work around language nesting issue 2024-09-17 09:51:29 +02:00
Scott Kostyshak
bdc6df14ed Uninvert the ja Additional systemF tests
These exports now succeed thanks to Jürgen's recent fixes.
2024-09-16 17:54:17 +02:00
Juergen Spitzmueller
9ac0d48849 Add missing ("false") condition 2024-09-16 17:05:12 +02:00
Kornel Benko
4002eb0b67 Update sk.po 2024-09-16 15:31:03 +02:00
Juergen Spitzmueller
4d3592fd18 amend 8e49c9a704
we might not be using babel, after all
2024-09-16 15:12:42 +02:00
Juergen Spitzmueller
8e49c9a704 Fix es/ModernCV on older versions that do not have language options 2024-09-16 14:54:30 +02:00
Juergen Spitzmueller
61a7e970d1 Fix most math problems with Xe/LuaTeX
One NULL character issue left
2024-09-16 14:30:16 +02:00
Juergen Spitzmueller
a2d75bb9d7 Fixup ja/Additional for Xe/LuaTeX 2024-09-16 13:36:48 +02:00
Juergen Spitzmueller
6821738fe5 Fixup ja/UserGuide for XeTeX
The system fonts do not cover Western quotation marks
2024-09-16 13:36:03 +02:00
Juergen Spitzmueller
5002da6070 Fix font def 2024-09-16 08:48:28 +02:00
Juergen Spitzmueller
49904f5d3d A&A does not work with polyglossia
(babel is hardcoded in the class)
2024-09-15 18:36:23 +02:00
Juergen Spitzmueller
649c5e9b0a Uee a more accesible JP mono font 2024-09-15 17:34:28 +02:00
Juergen Spitzmueller
e256357509 Fixup polyglossia-languages test file
* Workaround for churchslavonic
2024-09-15 15:21:46 +02:00
Juergen Spitzmueller
e7c5b8aecc Fixup polyglossia-languages test file
* Branch Kazakh as it is now babel-only
* Setup fonts for Chinese via fontspec
* Setup proper fonts for Japanese
* Use proper Japanese language variant
2024-09-15 15:09:08 +02:00
Juergen Spitzmueller
5c5b488c88 Fix Spanish ModernCV example 2024-09-15 13:53:41 +02:00
Juergen Spitzmueller
08c5b8b8b2 Set appropriate system fonts for Chinese docs 2024-09-15 13:32:10 +02:00
Jean-Marc Lasgouttes
928f9514a8 More places where DocumentClassPtr should not be copied
Spotted by COverity scan.
2024-09-14 20:40:53 +02:00
Jean-Marc Lasgouttes
8c76a9fc3d Pass sigPtr object as const reference too
Spotted by Coverity scan.
2024-09-14 20:36:04 +02:00
Jean-Marc Lasgouttes
980f91d12e Pass SocketCallback object as const reference
Spotted by Coverity scan.
2024-09-14 20:19:34 +02:00
Juergen Spitzmueller
52157c9318 Set appropriate tt font that supports CJK
The actual font should be discussed. This one is OSS and works well:
https://github.com/adobe-fonts/source-han-code-jp
2024-09-14 14:46:29 +02:00
Juergen Spitzmueller
7340fe5d65 Fixup some more Japanese templates
All of these rely on non-polyglossia language support
2024-09-14 14:43:43 +02:00
Juergen Spitzmueller
80fdb6ba42 Fixup Japanese Article template
This one relies on its own language support
2024-09-14 14:38:47 +02:00
Juergen Spitzmueller
250cb1401d Fixup Japanese Feynman example
Polyglossia is loaded after the user preamble
2024-09-14 14:36:18 +02:00
Juergen Spitzmueller
6d06f5fa55 Fixup Japanese Article example
This one relies on its own language support
2024-09-14 14:29:31 +02:00
Juergen Spitzmueller
c167bc90f5 Fixup test file for texF tests
Use proper fonts basically (the rest is format conversion)
2024-09-14 12:48:57 +02:00
Juergen Spitzmueller
30f170ea26 Revert "use std::move() instead of copying when value is no longer used"
This reverts commit e685d31f5a.
2024-09-14 10:59:13 +02:00
Juergen Spitzmueller
3a1c8897b1 Revert "Fix compiler warning"
This reverts commit 0a75854038.
2024-09-14 10:59:08 +02:00
Jean-Marc Lasgouttes
375aba7b5d Transform CoordCache::check/checkDim in ASSERT_DIM/POS macros
This makes it more obvious to the reader that these are actually
assertions, and should help Coverity scan too.
2024-09-13 15:44:33 +02:00
Jean-Marc Lasgouttes
3af0bad22a Pass shared_ptr<> arguments by const reference
These arguments are not expensive to copy. However, it makes sense to
pass such pointers by const reference when they are just intended for
reading.

Some reading about this issue is here:
https://www.internalpointers.com/post/move-smart-pointers-and-out-functions-modern-c

Fixes some Coverity scan defects.
2024-09-13 14:54:43 +02:00
Jean-Marc Lasgouttes
58ee4c9ec7 Pass DocumentClassConstPtr arguments by const reference
This arguments are shared_ptr objects, so they are not expensive to
copy. However, it makes sense to pass such pointers by const reference
when they are just intended for reading.

Some reading about this issue is here:
https://www.internalpointers.com/post/move-smart-pointers-and-out-functions-modern-c

Fixes some Coverity scan defects.
2024-09-13 14:16:21 +02:00
Jean-Marc Lasgouttes
3649cea9e5 Make two parameters const references 2024-09-13 11:27:00 +02:00
Jean-Marc Lasgouttes
ffca6730d6 Fix uninitialized variable
Spotted by Coverity scan.
2024-09-13 11:21:19 +02:00
Jean-Marc Lasgouttes
9f40eaee15 Do not use rand() to set a BranchList id
Use a simple counting instead, beecause Coverity complains that rand()
is not safe, and counting is siimpler anyway.
2024-09-13 11:09:30 +02:00
Jean-Marc Lasgouttes
9b3c28178c Make string parameter a const reference
Spotted by Coverity scan.
2024-09-13 10:27:24 +02:00
Jean-Marc Lasgouttes
8e181e992d Avoid a couple of copies.
Spotted by Coverity scan.
2024-09-12 18:33:45 +02:00
Jean-Marc Lasgouttes
7a99ef7fbb Make docstring parameters const references
Spotted by Coverity scan.
2024-09-12 18:28:26 +02:00
Jean-Marc Lasgouttes
b743870d71 Graph::getReachable(): pass a parameter by const reference
Spotted by coverity.
2024-09-12 18:20:43 +02:00
Jean-Marc Lasgouttes
b1bbf64a28 Avoid a copy
Spotted by Coverity scan.
2024-09-12 18:05:50 +02:00
Jean-Marc Lasgouttes
cc40330e00 Avoid a couple of copies
Spotted by Coverity scan.
2024-09-12 17:59:41 +02:00
Jean-Marc Lasgouttes
91f3f27545 GuiWorkArea: pass KeySymbol parameters as const references
Spotted by Coverity scan.
2024-09-12 17:52:57 +02:00
Jean-Marc Lasgouttes
8ea9c2da03 Avoid a couple copies in Trans::addDeadKeys().
Spotted by Coverity scan.
2024-09-12 17:24:32 +02:00
Jean-Marc Lasgouttes
7946dfacfa TransState::addkey() pass parameter by const reference
Spotted by Coverity scan.
2024-09-12 16:54:02 +02:00
Jean-Marc Lasgouttes
eeb84bce17 Pass three string parameters by address
Spoted by Coverity scan.
2024-09-11 17:33:52 +02:00
Jean-Marc Lasgouttes
13b05102f2 Pass a docstring parameter by address
Spotted by Coverity scan.
2024-09-11 17:30:33 +02:00
Jean-Marc Lasgouttes
e6930ffec8 Pass a pair of docstring arguments by address
Spotted by Coverity scan.
2024-09-11 17:25:03 +02:00
Jean-Marc Lasgouttes
851e59cd26 Avoid an unnecessary string copy
Spotted by Coverity scan.
2024-09-11 17:08:45 +02:00
Jean-Marc Lasgouttes
a47d66df34 Pass arguments by address in convert() templates
The situation of the convert<>() template was a mess: the header
announced that template specializations passed strings by address (my
doing long ago), but the code would just define versions that upass
strings by value.

The solution is to pass all values by address. This works very well,
_except_ when the value is a string litteral.

Defining the templates thus requires a bit of work.

Spotted by Coverity scan.
2024-09-11 16:43:26 +02:00
Jean-Marc Lasgouttes
291d2db18e Fix linking of test programs in support/. 2024-09-11 16:42:41 +02:00