Browse Source

Update to upstream version 2.0.3

r14.0.x
Slávek Banko 8 years ago
parent
commit
b304b1f064
  1. 45
      ChangeLog
  2. 26
      acinclude.m4
  3. 2
      configure.in
  4. 12
      src/kile/codecompletion.cpp
  5. 5
      src/kile/complete/abbreviation/CMakeLists.txt
  6. 3
      src/kile/complete/abbreviation/Makefile.am
  7. 1582
      src/kile/complete/abbreviation/fastex.cwl
  8. 2
      src/kile/complete/dictionary/metapost.cwl
  9. 9
      src/kile/complete/tex/CMakeLists.txt
  10. 9
      src/kile/complete/tex/Makefile.am
  11. 43
      src/kile/complete/tex/allrunes.cwl
  12. 43
      src/kile/complete/tex/babel.cwl
  13. 14
      src/kile/complete/tex/bm.cwl
  14. 2
      src/kile/complete/tex/class-scrartcl,scrreprt,scrbook.cwl
  15. 10
      src/kile/complete/tex/float.cwl
  16. 95
      src/kile/complete/tex/glosstex.cwl
  17. 1
      src/kile/complete/tex/graphicx.cwl
  18. 26
      src/kile/complete/tex/latex-document.cwl
  19. 4
      src/kile/complete/tex/nicefrac.cwl
  20. 37
      src/kile/complete/tex/siunitx-special.cwl
  21. 287
      src/kile/complete/tex/siunitx.cwl
  22. 2
      src/kile/complete/tex/subfig.cwl
  23. 2
      src/kile/complete/tex/tex.cwl
  24. 9
      src/kile/complete/tex/todonotes.cwl
  25. 2
      src/kile/configtester.cpp
  26. 24
      src/kile/internal-testing/bugs1.tex
  27. 72
      src/kile/internal-testing/math-mode-selector.tex
  28. 2
      src/kile/internal-testing/syntax-comment-updateStruct.tex
  29. 54
      src/kile/internal-testing/syntax-math2.tex
  30. 3
      src/kile/kile.cpp
  31. 24
      src/kile/kiledocmanager.cpp
  32. 39
      src/kile/kiledocumentinfo.cpp
  33. 2
      src/kile/kiledocumentinfo.h
  34. 16
      src/kile/kileedit.cpp
  35. 7
      src/kile/kilegrepdialog.cpp
  36. 7
      src/kile/kilelogwidget.cpp
  37. 1
      src/kile/kileproject.cpp
  38. 35
      src/kile/kilestructurewidget.cpp
  39. 21
      src/kile/kiletool.h
  40. 2
      src/kile/kileversion.h
  41. 12
      src/kile/latexoutputfilter.cpp
  42. 27
      src/kile/symbols/special.tex
  43. 1
      src/kile/symbols/special/CMakeLists.txt
  44. 3
      src/kile/symbols/special/Makefile.am
  45. BIN
      src/kile/symbols/special/img001special.png
  46. BIN
      src/kile/symbols/special/img002special.png
  47. BIN
      src/kile/symbols/special/img003special.png
  48. BIN
      src/kile/symbols/special/img004special.png
  49. BIN
      src/kile/symbols/special/img005special.png
  50. BIN
      src/kile/symbols/special/img006special.png
  51. BIN
      src/kile/symbols/special/img007special.png
  52. BIN
      src/kile/symbols/special/img008special.png
  53. BIN
      src/kile/symbols/special/img009special.png
  54. BIN
      src/kile/symbols/special/img010special.png
  55. BIN
      src/kile/symbols/special/img011special.png
  56. BIN
      src/kile/symbols/special/img012special.png
  57. BIN
      src/kile/symbols/special/img013special.png
  58. BIN
      src/kile/symbols/special/img014special.png
  59. BIN
      src/kile/symbols/special/img015special.png
  60. BIN
      src/kile/symbols/special/img016special.png
  61. BIN
      src/kile/symbols/special/img017special.png
  62. BIN
      src/kile/symbols/special/img018special.png
  63. BIN
      src/kile/symbols/special/img019special.png
  64. BIN
      src/kile/symbols/special/img020special.png
  65. BIN
      src/kile/symbols/special/img021special.png
  66. BIN
      src/kile/symbols/special/img022special.png
  67. BIN
      src/kile/symbols/special/img023special.png
  68. BIN
      src/kile/symbols/special/img024special.png
  69. BIN
      src/kile/symbols/special/img025special.png
  70. BIN
      src/kile/symbols/special/img026special.png
  71. BIN
      src/kile/symbols/special/img027special.png
  72. BIN
      src/kile/symbols/special/img028special.png
  73. BIN
      src/kile/symbols/special/img029special.png
  74. BIN
      src/kile/symbols/special/img030special.png
  75. BIN
      src/kile/symbols/special/img031special.png
  76. BIN
      src/kile/symbols/special/img032special.png
  77. BIN
      src/kile/symbols/special/img033special.png
  78. BIN
      src/kile/symbols/special/img034special.png
  79. BIN
      src/kile/symbols/special/img035special.png
  80. BIN
      src/kile/symbols/special/img036special.png
  81. BIN
      src/kile/symbols/special/img037special.png
  82. BIN
      src/kile/symbols/special/img038special.png
  83. BIN
      src/kile/symbols/special/img039special.png
  84. BIN
      src/kile/symbols/special/img040special.png
  85. BIN
      src/kile/symbols/special/img041special.png
  86. BIN
      src/kile/symbols/special/img042special.png
  87. BIN
      src/kile/symbols/special/img043special.png
  88. BIN
      src/kile/symbols/special/img044special.png
  89. BIN
      src/kile/symbols/special/img045special.png
  90. BIN
      src/kile/symbols/special/img046special.png
  91. BIN
      src/kile/symbols/special/img047special.png
  92. BIN
      src/kile/symbols/special/img048special.png
  93. BIN
      src/kile/symbols/special/img049special.png
  94. BIN
      src/kile/symbols/special/img050special.png
  95. BIN
      src/kile/symbols/special/img051special.png
  96. BIN
      src/kile/symbols/special/img052special.png
  97. BIN
      src/kile/symbols/special/img053special.png
  98. BIN
      src/kile/symbols/special/img054special.png
  99. BIN
      src/kile/symbols/special/img055special.png
  100. BIN
      src/kile/symbols/special/img056special.png
  101. BIN
      src/kile/symbols/special/img057special.png
  102. BIN
      src/kile/symbols/special/img058special.png
  103. BIN
      src/kile/symbols/special/img059special.png
  104. BIN
      src/kile/symbols/special/img060special.png
  105. BIN
      src/kile/symbols/special/img061special.png
  106. BIN
      src/kile/symbols/special/img062special.png
  107. BIN
      src/kile/symbols/special/img063special.png
  108. BIN
      src/kile/symbols/special/img064special.png
  109. BIN
      src/kile/symbols/special/img065special.png
  110. BIN
      src/kile/symbols/special/img066special.png
  111. BIN
      src/kile/symbols/special/img067special.png
  112. BIN
      src/kile/symbols/special/img068special.png
  113. BIN
      src/kile/symbols/special/img069special.png
  114. BIN
      src/kile/symbols/special/img070special.png
  115. BIN
      src/kile/symbols/special/img071special.png
  116. BIN
      src/kile/symbols/special/img072special.png
  117. BIN
      src/kile/symbols/special/img073special.png
  118. BIN
      src/kile/symbols/special/img074special.png
  119. BIN
      src/kile/symbols/special/img075special.png
  120. BIN
      src/kile/symbols/special/img076special.png
  121. BIN
      src/kile/symbols/special/img077special.png
  122. BIN
      src/kile/symbols/special/img078special.png
  123. BIN
      src/kile/symbols/special/img079special.png
  124. BIN
      src/kile/symbols/special/img080special.png
  125. BIN
      src/kile/symbols/special/img081special.png
  126. BIN
      src/kile/symbols/special/img082special.png
  127. BIN
      src/kile/symbols/special/img083special.png
  128. BIN
      src/kile/symbols/special/img084special.png
  129. BIN
      src/kile/symbols/special/img085special.png
  130. BIN
      src/kile/symbols/special/img086special.png
  131. BIN
      src/kile/symbols/special/img087special.png
  132. BIN
      src/kile/symbols/special/img088special.png
  133. BIN
      src/kile/symbols/special/img089special.png
  134. BIN
      src/kile/symbols/special/img090special.png
  135. BIN
      src/kile/symbols/special/img091special.png
  136. BIN
      src/kile/symbols/special/img092special.png
  137. BIN
      src/kile/symbols/special/img093special.png
  138. BIN
      src/kile/symbols/special/img094special.png
  139. BIN
      src/kile/symbols/special/img095special.png
  140. BIN
      src/kile/symbols/special/img096special.png
  141. BIN
      src/kile/symbols/special/img097special.png
  142. BIN
      src/kile/symbols/special/img098special.png
  143. BIN
      src/kile/symbols/special/img099special.png
  144. BIN
      src/kile/symbols/special/img100special.png
  145. BIN
      src/kile/symbols/special/img101special.png
  146. BIN
      src/kile/symbols/special/img102special.png
  147. BIN
      src/kile/symbols/special/img103special.png
  148. BIN
      src/kile/symbols/special/img104special.png
  149. BIN
      src/kile/symbols/special/img105special.png
  150. BIN
      src/kile/symbols/special/img106special.png
  151. BIN
      src/kile/symbols/special/img107special.png
  152. BIN
      src/kile/symbols/special/img108special.png
  153. BIN
      src/kile/symbols/special/img109special.png
  154. BIN
      src/kile/symbols/special/img110special.png
  155. BIN
      src/kile/symbols/special/img111special.png
  156. BIN
      src/kile/symbols/special/img112special.png
  157. BIN
      src/kile/symbols/special/img113special.png
  158. BIN
      src/kile/symbols/special/img114special.png
  159. BIN
      src/kile/symbols/special/img115special.png
  160. BIN
      src/kile/symbols/special/img116special.png
  161. BIN
      src/kile/symbols/special/img117special.png
  162. BIN
      src/kile/symbols/special/img118special.png
  163. BIN
      src/kile/symbols/special/img119special.png
  164. BIN
      src/kile/symbols/special/img120special.png
  165. BIN
      src/kile/symbols/special/img121special.png
  166. BIN
      src/kile/symbols/special/img122special.png
  167. BIN
      src/kile/symbols/special/img123special.png
  168. BIN
      src/kile/symbols/special/img124special.png
  169. BIN
      src/kile/symbols/special/img125special.png
  170. BIN
      src/kile/symbols/special/img126special.png
  171. BIN
      src/kile/symbols/special/img127special.png
  172. BIN
      src/kile/symbols/special/img128special.png
  173. BIN
      src/kile/symbols/special/img129special.png
  174. BIN
      src/kile/symbols/special/img130special.png
  175. BIN
      src/kile/symbols/special/img131special.png
  176. BIN
      src/kile/symbols/special/img132special.png
  177. BIN
      src/kile/symbols/special/img133special.png
  178. BIN
      src/kile/symbols/special/img134special.png
  179. BIN
      src/kile/symbols/special/img135special.png
  180. BIN
      src/kile/symbols/special/img136special.png
  181. BIN
      src/kile/symbols/special/img137special.png
  182. BIN
      src/kile/symbols/special/img138special.png
  183. BIN
      src/kile/symbols/special/img139special.png
  184. BIN
      src/kile/symbols/special/img140special.png
  185. BIN
      src/kile/symbols/special/img141special.png
  186. BIN
      src/kile/symbols/special/img142special.png
  187. BIN
      src/kile/symbols/special/img143special.png
  188. BIN
      src/kile/symbols/special/img144special.png
  189. BIN
      src/kile/symbols/special/img145special.png
  190. BIN
      src/kile/symbols/special/img146special.png
  191. BIN
      src/kile/symbols/special/img147special.png
  192. BIN
      src/kile/symbols/special/img148special.png
  193. BIN
      src/kile/symbols/special/img149special.png
  194. BIN
      src/kile/symbols/special/img150special.png
  195. BIN
      src/kile/symbols/special/img151special.png
  196. BIN
      src/kile/symbols/special/img152special.png
  197. BIN
      src/kile/symbols/special/img153special.png
  198. BIN
      src/kile/symbols/special/img154special.png
  199. BIN
      src/kile/symbols/special/img155special.png
  200. BIN
      src/kile/symbols/special/img156special.png
  201. BIN
      src/kile/symbols/special/img157special.png
  202. BIN
      src/kile/symbols/special/img158special.png
  203. BIN
      src/kile/symbols/special/img159special.png
  204. BIN
      src/kile/symbols/special/img160special.png
  205. BIN
      src/kile/symbols/special/img161special.png
  206. BIN
      src/kile/symbols/special/img162special.png
  207. BIN
      src/kile/symbols/special/img163special.png
  208. BIN
      src/kile/symbols/special/img164special.png
  209. BIN
      src/kile/symbols/special/img165special.png
  210. BIN
      src/kile/symbols/special/img166special.png
  211. BIN
      src/kile/symbols/special/img167special.png
  212. BIN
      src/kile/symbols/special/img168special.png
  213. BIN
      src/kile/symbols/special/img169special.png
  214. BIN
      src/kile/symbols/special/img170special.png
  215. BIN
      src/kile/symbols/special/img171special.png
  216. BIN
      src/kile/symbols/special/img172special.png
  217. BIN
      src/kile/symbols/special/img173special.png
  218. BIN
      src/kile/symbols/special/img174special.png
  219. BIN
      src/kile/symbols/special/img175special.png
  220. BIN
      src/kile/symbols/special/img176special.png
  221. BIN
      src/kile/symbols/special/img177special.png
  222. BIN
      src/kile/symbols/special/img178special.png
  223. 6
      src/kile/symbolview.cpp
  224. 8
      src/kile/syntax/latex.xml
  225. 2
      src/kile/test/runTests.sh
  226. 684
      translations/ar/messages/kile.po
  227. 684
      translations/bg/messages/kile.po
  228. 684
      translations/br/messages/kile.po
  229. 684
      translations/ca/messages/kile.po
  230. 684
      translations/cs/messages/kile.po
  231. 684
      translations/cy/messages/kile.po
  232. 684
      translations/da/messages/kile.po
  233. 684
      translations/de/messages/kile.po
  234. 684
      translations/el/messages/kile.po
  235. 684
      translations/en_GB/messages/kile.po
  236. 1384
      translations/es/doc/index.docbook
  237. 684
      translations/es/messages/kile.po
  238. 4158
      translations/et/doc/index.docbook
  239. 684
      translations/et/messages/kile.po
  240. 684
      translations/eu/messages/kile.po
  241. 684
      translations/fi/messages/kile.po
  242. 684
      translations/fr/messages/kile.po
  243. 684
      translations/ga/messages/kile.po
  244. 684
      translations/gl/messages/kile.po
  245. 684
      translations/hi/messages/kile.po
  246. 684
      translations/hu/messages/kile.po
  247. 684
      translations/is/messages/kile.po
  248. 684
      translations/it/messages/kile.po
  249. 684
      translations/ja/messages/kile.po
  250. 684
      translations/lt/messages/kile.po
  251. 684
      translations/ms/messages/kile.po
  252. 684
      translations/mt/messages/kile.po
  253. 684
      translations/nb/messages/kile.po
  254. 710
      translations/nds/messages/kile.po
  255. 684
      translations/nl/messages/kile.po
  256. 736
      translations/nn/messages/kile.po
  257. 684
      translations/pa/messages/kile.po
  258. 684
      translations/pl/messages/kile.po
  259. 684
      translations/pt/messages/kile.po
  260. 1027
      translations/pt_BR/messages/kile.po
  261. 684
      translations/ro/messages/kile.po
  262. 684
      translations/ru/messages/kile.po
  263. 684
      translations/rw/messages/kile.po
  264. 684
      translations/sk/messages/kile.po
  265. 684
      translations/sr/messages/kile.po
  266. 684
      translations/sr@Latn/messages/kile.po
  267. 684
      translations/sv/messages/kile.po
  268. 684
      translations/ta/messages/kile.po
  269. 684
      translations/th/messages/kile.po
  270. 684
      translations/tr/messages/kile.po
  271. 684
      translations/uk/messages/kile.po
  272. 684
      translations/zh_CN/messages/kile.po

45
ChangeLog

@ -1,3 +1,47 @@
version 2.0.2 -> 2.0.3
Fixes:
- Add {} to special characters in symbolview for easier handling (#170144)
- Don't blend user defined symbols because we don't know how they look like
- Misplaced cursor with intelligent double quotes and selections (#174937)
- Fixed a case where the autocompletion dies (#164231,#174003)
- Make the statistics pane work also for non latex files (#173745)
- Don't report certain log messages as tex errors (#174665)
- Properly escape the log messages so that also <...> shows up (#175148)
- some cwl typos
CWL:
- Added babel, todonotes (thanks to Salim), glosstex, nicefrac, float,
fastex (thanks to Fabian Rost)
Syntax:
- latex: -- fixed corner case where \newcommand got highlighted wrong
-- highlight alignat and friends correctly
version 2.0.1 -> 2.0.2
Fixes:
- Insert \item[] in description environments for smart newline (#161658),
reported and fixed by Job Noorman
- Fix regression in 2.0.1 inside structure view related to opening files (debian #484146)
- Fix regression in latexoutputfilter resulting in the wrong file being
reported (#162899)
- Fix regression in Kile 2.0.x, blend symbols so that they are usable with
dark themes also (#161153)
- Don't create 'save' and 'save-as' actions specifically for Kile as they will
interfere with the corresponding actions from KatePart. Thanks to Mathias
Soeken for reporting.
- Also parse class warnings and show them in the Logview, patch by Jeroen Leeuwestein (#169040)
- Remove not sh-compliant code by requiring a Bash shell for system check (debian #489618)
- Add a workaround for a bug contained in KatePart 3.x in the 'setEncoding' method, which enforces
a reload on every change of the encoding (as a consequence the user sees a confusing
document-modified dialog) (#160258)
- Make find-in-files work again with anyting else than the "all files" filter (#165636)
- Minor cwl fixes
Features:
- cwl file for siunitx (thanks to Dirk Sarpe) and allrunes packages
version 2.0 -> 2.0.1
Fixes:
@ -16,6 +60,7 @@ Fixes:
- Add missing package definitions to some symbols from the misc-text pane
- Allow spaces in the name of images in the includegraphics dialog (#161101)
- Don't recompile forever if some file timestamps are in the future (#121956)
- Fix the "autocompletion dies" bug (#155044) and also (#160555)
Features:
- Add \newlength as a variation of newcommand

26
acinclude.m4

@ -4643,18 +4643,20 @@ fi
AC_DEFUN([KDE_CHECK_PYTHON],
[
KDE_CHECK_PYTHON_INTERN("2.5",
[KDE_CHECK_PYTHON_INTERN("2.4",
[KDE_CHECK_PYTHON_INTERN("2.3",
[KDE_CHECK_PYTHON_INTERN("2.2",
[KDE_CHECK_PYTHON_INTERN("2.1",
[KDE_CHECK_PYTHON_INTERN("2.0",
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
])
])
])
])
])
KDE_CHECK_PYTHON_INTERN("2.6",
[KDE_CHECK_PYTHON_INTERN("2.5",
[KDE_CHECK_PYTHON_INTERN("2.4",
[KDE_CHECK_PYTHON_INTERN("2.3",
[KDE_CHECK_PYTHON_INTERN("2.2",
[KDE_CHECK_PYTHON_INTERN("2.1",
[KDE_CHECK_PYTHON_INTERN("2.0",
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
])
])
])
])
])
])
])
AC_DEFUN([KDE_CHECK_STL],

2
configure.in

@ -40,7 +40,7 @@ dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(kile-2.0.1, "3.5.9") dnl searches for some needed programs
AM_INIT_AUTOMAKE(kile-2.0.3, "3.5.10") dnl searches for some needed programs
AM_MAINTAINER_MODE

12
src/kile/codecompletion.cpp

@ -1153,7 +1153,7 @@ namespace KileDocument
void CodeCompletion::slotCharactersInserted(int, int, const TQString& string )
{
KILE_DEBUG() << "==slotCharactersInserted (" << m_kilecompletion << "," << m_inprogress << ", " << m_ref << ", " << string << ")=============" << endl;
KILE_DEBUG() << "==slotCharactersInserted (m_kilecompletion=" << m_kilecompletion << "m_inprogress," << m_inprogress << ",m_ref=" << m_ref << ",string=" << string << ")=============" << endl;
if ( !inProgress() && m_autoDollar && string=="$" )
{
@ -1184,6 +1184,16 @@ namespace KileDocument
editCompleteList(reftype,startpattern);
return;
}
} // also unusual but may also happen, 20.11.2008 tbraun
else if( m_ref && !inProgress())
{
TQString startpattern;
CodeCompletion::Type reftype = insideReference(startpattern);
if ( reftype == CodeCompletion::ctNone )
{
m_ref = false;
return;
}
}
TQString word;

5
src/kile/complete/abbreviation/CMakeLists.txt

@ -1,4 +1,7 @@
########### install files ###############
INSTALL( FILES example.cwl DESTINATION share/apps/kile/complete/abbreviation )
INSTALL( FILES
example.cwl
fastex.cwl
DESTINATION share/apps/kile/complete/abbreviation )

3
src/kile/complete/abbreviation/Makefile.am

@ -1,2 +1,3 @@
abbcompletedir = $(kde_datadir)/kile/complete/abbreviation
abbcomplete_DATA = example.cwl
abbcomplete_DATA = example.cwl \
fastex.cwl

1582
src/kile/complete/abbreviation/fastex.cwl

File diff suppressed because it is too large Load Diff

2
src/kile/complete/dictionary/metapost.cwl

@ -88,7 +88,7 @@ draw
draw_mark()
draw_marked()
drawarrow
drawblarrow
drawdblarrow
drawboxed()
drawboxes()
drawoptions()

9
src/kile/complete/tex/CMakeLists.txt

@ -3,6 +3,7 @@
# get this cwl list with "for i in `ls *.cwl -1`; do echo "$i"; done"
SET(kile_texCompleteFiles
acronym.cwl
allrunes.cwl
amsopn.cwl
afterpage.cwl
amsbsy.cwl
@ -12,11 +13,13 @@ SET(kile_texCompleteFiles
amsthm.cwl
array.cwl
attachfile.cwl
babel.cwl
beamerfoils.cwl
beamerprosper.cwl
beamerseminar.cwl
beamertexpower.cwl
booktabs.cwl
bm.cwl
braket.cwl
calc.cwl
class-beamer.cwl
@ -40,8 +43,10 @@ SET(kile_texCompleteFiles
fancyunits-per.cwl
fancyunits_small-fractions.cwl
fancyvrb.cwl
float.cwl
fontspec.cwl
graphicx.cwl
glosstex.cwl
hyperref.cwl
ifthen.cwl
import.cwl
@ -60,6 +65,7 @@ SET(kile_texCompleteFiles
mdwlist.cwl
multicol.cwl
multido.cwl
nicefrac.sty
pdfpages.cwl
psfrag.cwl
pst-3d.cwl
@ -80,6 +86,8 @@ SET(kile_texCompleteFiles
scrpage2.cwl
scrtime.cwl
setspace.cwl
siunitx.cwl
siunitx-special.cwl
subfig.cwl
supertabular.cwl
svninfo.cwl
@ -87,6 +95,7 @@ SET(kile_texCompleteFiles
tabularx.cwl
tex.cwl
textcomp.cwl
todonotes.cwl
url.cwl
varioref.cwl
verse.cwl

9
src/kile/complete/tex/Makefile.am

@ -2,6 +2,7 @@ texcompletedir = $(kde_datadir)/kile/complete/tex
texcomplete_DATA = \
acronym.cwl \
afterpage.cwl \
allrunes.cwl \
amsbsy.cwl \
amsfonts.cwl \
amsmath.cwl \
@ -10,11 +11,13 @@ texcomplete_DATA = \
amsthm.cwl \
array.cwl \
attachfile.cwl \
babel.cwl \
beamerfoils.cwl \
beamerprosper.cwl \
beamerseminar.cwl \
beamertexpower.cwl \
booktabs.cwl \
bm.cwl \
braket.cwl \
calc.cwl \
class-beamer.cwl \
@ -38,7 +41,9 @@ texcomplete_DATA = \
fancyunits-per.cwl \
fancyunits_small-fractions.cwl \
fancyvrb.cwl \
float.cwl \
fontspec.cwl \
glosstex.cwl \
graphicx.cwl \
hyperref.cwl \
ifthen.cwl \
@ -58,6 +63,7 @@ texcomplete_DATA = \
mdwlist.cwl \
multicol.cwl \
multido.cwl \
nicefrac.cwl \
pdfpages.cwl \
psfrag.cwl \
pst-3d.cwl \
@ -78,6 +84,8 @@ texcomplete_DATA = \
scrpage2.cwl \
scrtime.cwl \
setspace.cwl \
siunitx.cwl \
siunitx-special.cwl \
subfig.cwl \
supertabular.cwl \
svninfo.cwl \
@ -85,6 +93,7 @@ texcomplete_DATA = \
tabularx.cwl \
tex.cwl \
textcomp.cwl \
todonotes.cwl \
url.cwl \
varioref.cwl \
verse.cwl \

43
src/kile/complete/tex/allrunes.cwl

@ -0,0 +1,43 @@
# allrunes package, available from ctan
# tbraun, 28.08.2008
\textarc{text}
\textara{text}
\textarn{text}
\textart{text}
\textarl{text}
\textarm{text}
\arcfamily
\arafamily
\arnfamily
\artfamily
\arlfamily
\armfamily
# already included in standard latex
# \textbf{text}
# \bfseries
# \textmd{text}
# \mdseries
\textlf{text}
\lfseries
\textwil{text}
\textwol{text}
\withlines
\withoutlines
\textst{text}
\textcu{text}
\textro{text}
\straighttwigs
\curvedtwigs
\roundedtwigs
\texthi{text}
\textlo{text}
\hightwigs
\lowtwigs
\hflip{rune}
\vflip{rune}
\turn{rune}

43
src/kile/complete/tex/babel.cwl

@ -0,0 +1,43 @@
# babel.sty,
# available from ctan
# tbraun 4.11.2008
\selectlanguage{language}
\begin{otherlanguage}{language}
\begin{otherlanguage*}{language}
\end{otherlanguage}
\foreignlanguage{language}{text}
\begin{hypenrules}{option}
\end{hyphenrules}
\languagename
\iflanguage{language}{if true}{if false}
\useshorthands{character}
\defineshorthand{characters}{action}
\aliasshorthand{character}{shorthand}
\languageshorthands{language}
\shorthandon{characters}
\shorthandoff{characters}
\languageattribute{language}{list of attributes}
# extracted from gernmanb.ldf
\prefacename
\refname
\abstractname
\bibname
\chaptername
\appendixname
\contentsname
\listfigurename
\listtablename
\indexname
\figurename
\tablename
\partname
\enclname
\ccname
\headtoname
\pagename
\seename
\alsoname
\proofname
\glossaryname

14
src/kile/complete/tex/bm.cwl

@ -0,0 +1,14 @@
# bm, ctan
# tbraun 6/11/2008
\bm{math expression}
\hm{math expression}
\boldsymbol{math expression}
\heavysymbol{math expression}
\DeclareBoldMathCommand[math version]{cmd}{math expression}
\DeclareBoldMathCommand{cmd}{math expression}
\bmmax{number}
\hmmax{number}

2
src/kile/complete/tex/class-scrartcl,scrreprt,scrbook.cwl

@ -122,3 +122,5 @@
\pdfoutput
\pdfpageheight
\pdfpagewidth
# logo
\KOMAScript{}

10
src/kile/complete/tex/float.cwl

@ -0,0 +1,10 @@
# float, ctan
# tbraun 4.11.2008
\newfloat{type}{placement}{ext}[within]
\floatstyle{defaultstyle}
\floatname{type}{name}
\floatplacement{type}{default placement specifier}
\restylefloat{figure or table
\listof{type}{ title}

95
src/kile/complete/tex/glosstex.cwl

@ -0,0 +1,95 @@
# glosstex, ctan
# tbraun 4.11.2008
\glosstex{label}
\glosstex[pageref-mode]{label}
\glosstex(list){label}
\glosstex(list)[pageref-mode]{label}
\glosstex*{label}
\glosstex*[pageref-mode]{label}
\glosstex*(list){label}
\glosstex*(list)[pageref-mode]{label}
\acronym{label}
\acronym[pageref-mode]{label}
\acronym(list){label}
\acronym(list)[pageref-mode]{label}
\acronym*{label}
\acronym*[pageref-mode]{label}
\acronym*(list){label}
\acronym*(list)[pageref-mode]{label}
\gls{label}
\gls[pageref-mode]{label}
\gls(list){label}
\gls(list)[pageref-mode]{label}
\gls*{label}
\gls*[pageref-mode]{label}
\gls*(list){label}
\gls*(list)[pageref-mode]{label}
\ac{label}
\ac[pageref-mode]{label}
\ac(list)[pageref-mode]{label}
\ac<form>(list)[pageref-mode]{label}
\ac[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\ac*{label}
\ac*[pageref-mode]{label}
\ac*(list)[pageref-mode]{label}
\ac*<form>(list)[pageref-mode]{label}
\ac*[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acs{label}
\acs[pageref-mode]{label}
\acs(list)[pageref-mode]{label}
\acs<form>(list)[pageref-mode]{label}
\acs[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acs*{label}
\acs*[pageref-mode]{label}
\acs*(list)[pageref-mode]{label}
\acs*<form>(list)[pageref-mode]{label}
\acs*[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acl{label}
\acl[pageref-mode]{label}
\acl(list)[pageref-mode]{label}
\acl<form>(list)[pageref-mode]{label}
\acl[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acl*{label}
\acl*[pageref-mode]{label}
\acl*(list)[pageref-mode]{label}
\acl*<form>(list)[pageref-mode]{label}
\acl*[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acf{label}
\acf[pageref-mode]{label}
\acf(list)[pageref-mode]{label}
\acf<form>(list)[pageref-mode]{label}
\acf[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\acf*{label}
\acf*[pageref-mode]{label}
\acf*(list)[pageref-mode]{label}
\acf*<form>(list)[pageref-mode]{label}
\acf*[, lparen , rparen ,]<form>(list)[pageref-mode]{label}
\printglosstex(list)
\printglosstex(list)[pageref-mode]
\glxitemorderdefault{list}{item-order i/l/""}
\glxitemplacementdefault{list}{item-order t/f/""}
\glxparendefault{lparen}{rparen}
\glxparenlistdefault{list}{lparen}{rparen}
\glxref{item}
\glxref*{item}
\glxheading{glo, acr or own list}{definition}

1
src/kile/complete/tex/graphicx.cwl

@ -19,6 +19,7 @@
\reflectbox{text}
\resizebox*{h-length}{v-length}{text}
\rotatebox[key val list]{angle}{text}
\scalebox{h-scale}{text}
\scalebox{h-scale}[v-scale]{text}
\setkeys{Gin}{key val}
\textcolor{name}{text}

26
src/kile/complete/tex/latex-document.cwl

@ -219,20 +219,20 @@
\marginpar{right}
\markboth{lefthead}{righthead}
\markright{righthead}
\mathbb
\mathbf
\mathcal
\mathds
\mathbb{text}
\mathbf{text}
\mathcal{text}
\mathds{text}
\mathellipsis
\mathfrak
\mathfrak{text}
\mathgroup
\mathit
\mathnormal
\mathrm
\mathit{text}
\mathnormal{text}
\mathrm{text}
\mathscr
\mathsf
\mathsf{text}
\mathsterling
\mathtt
\mathtt{text}
\mathunderscore
\mathversion
\mbox{text}
@ -426,6 +426,7 @@
\renewenvironment{nam}[args][default]{begdef}{enddef}
\renewenvironment{nam}[args]{begdef}{enddef}
\renewenvironment{nam}{begdef}{enddef}
\left
\left(
\left[
\left\lbrace
@ -443,8 +444,9 @@
\left\Downarrow
\left\Updownarrow
\left.
\right(
\right[
\right
\right)
\right]
\right\rbrace
\right|
\right\|

4
src/kile/complete/tex/nicefrac.cwl

@ -0,0 +1,4 @@
# nicefrac, ctan
# tbraun 6.11.2008
\nicefrac{nom}{denom}

37
src/kile/complete/tex/siunitx-special.cwl

@ -0,0 +1,37 @@
# siunitx package, special commands
# get it from http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=siunitx
# dsarpe 03.07.2008
# Specialist units, not loaded by default, only with alsoload=<name>, here given in parentheses
# Binary units (binary)
\bit
\byte
# Synthetic chemistry (synchem)
\mmHg
\molar
\Molar
\torr
\dalton
# High-energy physics (hep)
\clight
\eVperc
# Areas
\yoctobarn
\yb
\zeptobarn
\zb
\attobarn
\ab
\femtobarn
\fb
\picobarn
\pb
\nanobarn
\nb
# Other units
\micron
\mrad
\gauss
# Astronomy (astro)
\parsec
\lightyear

287
src/kile/complete/tex/siunitx.cwl

@ -0,0 +1,287 @@
# siunitx package
# get it from http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=siunitx
# dsarpe 03.07.2008
# Numbers
\num{number}
\num[options]{number}
# Angles
\ang{angle}
\ang[options]{angle}
# Units and values
\SI{value}{unit commands}
\SI[options]{value}{unit commands}
\SI{value}[pre-unit]{unit commands}
\SI[options]{value}[pre-unit]{unit commands}
# Powers of units
\Square
\ssquare
\squared
\cubic
\cubed
\per
\tothe{power}
\raiseto{power}
# Units with no values
\si{unit}
\si[options]{unit}
#
# pre-defined units, prefixes and powers
#
# The seven base SI units
\kilogram
\metre
\second
\mole
\kelvin
\ampere
\candela
# The SI prefixes
\yocto
\zepto
\atto
\femto
\pico
\nano
\micro
\milli
\centi
\deci
\deca
\deka
\hecto
\kilo
\mega
\giga
\tera
\peta
\exa
\zetta
\yotta
# The derived SI units with defined names
\becquerel
\celsius
\coulomb
\farad
\Gray
\ggray
\hertz
\henry
\joule
\katal
\lumen
\lux
\newton
\ohm
\pascal
\radian
\siemens
\sievert
\steradian
\tesla
\volt
\watt
\weber
# Units derived from experiments
\electronvolt
\atomicmassunit
\atomicmass
# Units accepted for use with SI
\bel
\Day
\dday
\degree
\hour
\minute
\arcmin
\neper
\percent
\arcsec
\tonne
# Prefixed and abbreviated units
# Masses
\kilogram
\kg
\femtogram
\fg
\picogram
\pg
\nanogram
\nanog
\microgram
\micg
\milligram
\mg
\atomicmass
\amu
# Lengths
\picometre
\picom
\nanometre
\nm
\micrometre
\micm
\millimetre
\mm
\centimetre
\cm
\decimetre
\dm
\kilometre
\km
# Times
\second
\Sec
\attosecond
\as
\femtosecond
\fs
\picosecond
\ps
\nanosecond
\ns
\microsecond
\mics
\millisecond
\ms
# Moles
\femtomole
\fmol
\picomole
\pmol
\nanomole
\nmol
\micromole
\micmol
\millimole
\mmol
# Currents
\picoampere
\pA
\nanoampere
\nA
\microampere
\micA
\kiloampere
\kA
# Areas
\squarecentimetre
\centimetresquared
\cms
\squaremetre
\squarekilometre
# Volumes
\microlitre
\micl
\millilitre
\ml
\cubiccentimetre
\cmc
\centimetrecubed
\cubicdecimetre
\dmc
# Frequencies
\hertz
\Hz
\millihertz
\mHz
\kilohertz
\kHz
\megahertz
\MHz
\gigahertz
\GHz
\terahertz
\THz
# potentials
\millivolt
\mV
\kilovolt
\kV
# Energies
\kilojoule
\kJ
\electronvolt
\eV
\millielectronvolt
\meV
\kiloelectronvolt
\keV
\megaelectronvolt
\MeV
\gigaelectronvolt
\GeV
\teraelectronvolt
\TeV
\kilowatthour
\kWh
# Powers
\milliwatt
\kilowatt
\megawatt
# Capacitances
\femtofarad
\picofarad
\nanofarad
\microfarad
\millifarad
# Resistances
\kiloohm
\megaohm
\gigaohm
\millisiemens
# Forces
\millinewton
\kilonewton
# Other units
\hectopascal
\megabecquerel
\millisievert
# Additional (temporary) SI units
\angstrom
\are
\curie
\BAR
\bbar
\barn
\gal
\hectare
\millibar
\rad
\rem
\roentgen
# Defining new units
\newunit{new unit command}{text}
\newunit[options]{new unit command}{text}
\renewunit{new unit command}{text}
\renewunit[options]{new unit command}{text}
\provideunit{new unit command}{text}
\provideunit[options]{new unit command}{text}
\newpower{power}{num}
\newpower[post]{power}{num}
\renewpower{power}{num}
\renewpower[post]{power}{num}
\providepower{power}{num}
\providepower[post]{power}{num}
\newprefix{prefix}{symbol}{powers-ten}
\newprefix[binary]{prefix}{symbol}{powers-ten}
\renewprefix{prefix}{symbol}{powers-ten}
\renewprefix[binary]{prefix}{symbol}{powers-ten}
\provideprefix{prefix}{symbol}{powers-ten}
\provideprefix[binary]{prefix}{symbol}{powers-ten}
# Package options inside document
\sisetup

2
src/kile/complete/tex/subfig.cwl

@ -3,7 +3,7 @@
\captionsetup{kv-list}
\captionsetup[variable]{kv-list}
\ContinuedFloat
\DeclareCaptionListOfFormat{keyowrd}{code}
\DeclareCaptionListOfFormat{keyword}{code}
\listsubcaptions
\newsubfloat{floatname}
\newsubfloat[kv-list]{floatname}

2
src/kile/complete/tex/tex.cwl

@ -72,6 +72,7 @@
\displaylines
\displaywidowpenalty
\displaywidth
\displaystyle
\divide
\dotfill
\dots
@ -132,6 +133,7 @@
\hfilneg
\hfuzz
\hoffset
\hphantom
\hrule
\hrulefill
\hsize

9
src/kile/complete/tex/todonotes.cwl

@ -0,0 +1,9 @@
# todonotes.sty
# Salim 2008/11/09
# http://midtiby.blogspot.com/
\todo{text}
\todo[options]{text}
\listoftodos

2
src/kile/configtester.cpp

@ -168,7 +168,7 @@ void Tester::runTests()
KILE_DEBUG() << "Tester::runTests: destdir = " << destdir << endl;
m_resultsFile = destdir + "results.rc";
TQString shellname = TDEGlobal::dirs()->findExe("sh");
TQString shellname = TDEGlobal::dirs()->findExe("bash");
KILE_DEBUG() << "Tester::runTests: shellname = " << shellname << endl;
m_process = new KShellProcess(TQFile::encodeName( shellname ));
if (! KileConfig::teXPaths().isEmpty())

24
src/kile/internal-testing/bugs1.tex

@ -0,0 +1,24 @@
% syntax highlightning bug, nested enviroments are not recognized
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancybox}
\begin{document}
\newlength{\parboxlength}
\begin{align*}
\setlength{\fboxsep}{15pt}
\setlength{\parboxlength}{\linewidth}
\addtolength{\parboxlength}{-2\fboxsep}
\fbox{
\parbox{\parboxlength}{
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\begin{align}
asdf
\end{align}
}}
\end{align*}
asdfasdfasdfasdfadfasdf
\end{document}

72
src/kile/internal-testing/math-mode-selector.tex

@ -0,0 +1,72 @@
% /***************************************************************************
% begin: Aug 09 2006
% edit: --
% version: 0.01
% copyright: (C) 2006 by Holger Danielsson and Thomas Braun
% ***************************************************************************/
%
% /***************************************************************************
% * *
% * This program is free software; you can redistribute it and/or modify *
% * it under the terms of the GNU General Public License as published by *
% * the Free Software Foundation; either version 2 of the License, or *
% * (at your option) any later version. *
% * *
% ***************************************************************************/
\documentclass{article}
\begin{document}
234$ \sqrt{2}$ $a^2$
abc
$ \$ % \( % \[ $$$$
\begin{array}{ccc}
x^2 & y^2 & z^2
\end{array}
$
\begin{equation}
% \begin{equation} $
a^2 \\\\\$
\begin{array}{ccc}
\alpha & \beta & \gamma
\end{array}
\end{equation}
$\begin{array}{ccc}
a^2 & b^2 & c^2
\end{array}$
\[
a^2
\] \$ $ x^2$
\(
b^2 % $ test $
\)
\begin{displaymath} % works
\alpha + \beta + \gamma = 180° % comment
\begin{split}
\end{split}
\end{displaymath}
\begin{math} % does not work yet
\alpha + \beta + \gamma = 180° % comment
\end{math}
\begin{eqnarray} % should not work
\alpha + \beta + \gamma = 180° % comment
\end{eqnarray}
\ensuremath{}
\begin{mathtest} % has to be defined in configure-kile-commands to work
asdasdasd
\end{mathtest}
\end{document}

2
src/kile/internal-testing/syntax-comment-updateStruct.tex

@ -146,7 +146,7 @@ test
\ensuremath{a^2 + b^2 = c^2}
\section{ERROR}
}
\newcommand{\bloehhhhhhhh}[3][]{} % is also valid latex ...
\newcommand{\bloehhhhhhhh}[3][]{\hallo} % is also valid latex ...
\providecommand{\bloehhhhhhhhh}{test} % not yet supported

54
src/kile/internal-testing/syntax-math2.tex

@ -51,3 +51,57 @@ $$50 \$abc\text{qwe}\alpha$$xyz \par
$50\%\mbox{abc\textbf{def}}$xyz \par
\begin{align}
a &=b \\
c & b
\text{asd}
\end{align}
\begin{align*}
a &=b \\
c & b
\text{asd}
\end{align*}
\begin{alignat}{3}
a &= b \\
c & b
\text{asd}
\end{alignat}
\begin{alignat*}{3}
a &= b \\
c & b
\text{asd}
\end{alignat*}
\begin{alignat}{3}
a &= b \\
c & b
\text{asd}
\end{alignat}
\begin{xalignat}{3}
a &= b \\
c & b
\text{asd}
\end{xalignat}
\begin{xalignat*}{3}
a &= b \\
c & b
\text{asd}
\end{xalignat*}
\begin{xalignat}{3}
a &= b \\
c & b
\text{asd}
\end{xalignat}
\begin{xxalignat*}{3}
a &= b \\
c & b
\text{asd}
\end{xxalignat*}

3
src/kile/kile.cpp

@ -498,9 +498,6 @@ void Kile::setupActions()
connect(docManager(), TQT_SIGNAL(addToRecentFiles(const KURL& )), m_actRecentFiles, TQT_SLOT(addURL(const KURL& )));
m_actRecentFiles->loadEntries(m_config, "Recent Files");
(void) KStdAction::save(docManager(), TQT_SLOT(fileSave()), actionCollection(),"kile_file_save" );
(void) KStdAction::saveAs(docManager(), TQT_SLOT(fileSaveAs()), actionCollection(),"kile_file_save_as" );
(void) new TDEAction(i18n("Save All"),"save_all", 0, docManager(), TQT_SLOT(fileSaveAll()), actionCollection(),"file_save_all");
(void) new TDEAction(i18n("Save Copy As..."),"save_copy_as", 0, docManager(), TQT_SLOT(fileSaveCopyAs()), actionCollection(),"file_save_copy_as");
(void) new TDEAction(i18n("Create Template From Document..."), 0, docManager(), TQT_SLOT(createTemplate()), actionCollection(),"template_create");

24
src/kile/kiledocmanager.cpp

@ -942,10 +942,26 @@ void Manager::fileSaveAs(Kate::View* view)
}
break;
}
doc->setEncoding(result.encoding);
if(!doc->saveAs(saveURL))
{
return;
if(doc->encoding().lower() != result.encoding.lower()) {
// save the document twice if the user has selected a different encoding;
// this works around a bug in KatePart in the 'setEncoding' method, which
// enforces a reload on every change of the encoding, and as a consequence the
// user sees a document-modified dialog
if(!doc->saveAs(saveURL))
{
return;
}
doc->setEncoding(result.encoding);
if(!doc->save())
{
return;
}
}
else {
if(!doc->saveAs(saveURL))
{
return;
}
}
if(oldURL != saveURL)
{

39
src/kile/kiledocumentinfo.cpp

@ -480,7 +480,23 @@ const long* TextInfo::getStatistics()
/* [0] = #c in words, [1] = #c in latex commands and environments,
[2] = #c whitespace, [3] = #words, [4] = # latex_commands, [5] = latex_environments */
m_arStatistics[0]=m_arStatistics[1]=m_arStatistics[2]=m_arStatistics[3]=m_arStatistics[4]=m_arStatistics[5]=0;
TQString line;
if ( m_doc && m_doc->hasSelection() )
{
line = m_doc->selection();
KILE_DEBUG() << "getStat : line : " << line << endl;
count(line, m_arStatistics);
}
else if (m_doc)
{
for (uint l=0; l < m_doc->numLines(); ++l)
{
line = m_doc->textLine(l);
KILE_DEBUG() << "getStat : line : " << line << endl;
count(line, m_arStatistics);
}
}
return m_arStatistics;
}
@ -692,29 +708,6 @@ LaTeXInfo::~LaTeXInfo()
{
}
const long* LaTeXInfo::getStatistics()
{
/* [0] = #c in words, [1] = #c in latex commands and environments,
[2] = #c whitespace, [3] = #words, [4] = # latex_commands, [5] = latex_environments */
m_arStatistics[0]=m_arStatistics[1]=m_arStatistics[2]=m_arStatistics[3]=m_arStatistics[4]=m_arStatistics[5]=0;
TQString line;
if ( m_doc && m_doc->hasSelection() )
{
line = m_doc->selection();
KILE_DEBUG() << "getStat : line : " << line << endl;
count(line, m_arStatistics);
}
else if (m_doc)
for (uint l=0; l < m_doc->numLines(); ++l)
{
line = m_doc->textLine(l);
KILE_DEBUG() << "getStat : line : " << line << endl;
count(line, m_arStatistics);
}
return m_arStatistics;
}
Type LaTeXInfo::getType()
{
return LaTeX;

2
src/kile/kiledocumentinfo.h

@ -323,8 +323,6 @@ public:
LaTeXInfo(Kate::Document *doc, Extensions *extensions, LatexCommands *commands, const TQObject* eventFilter);
virtual ~LaTeXInfo();
const long* getStatistics();
virtual Type getType();
virtual TQString getFileFilter() const;

16
src/kile/kileedit.cpp

@ -935,8 +935,17 @@ void EditorExtension::insertIntelligentNewline(Kate::View *view)
{
if ( m_latexCommands->isListEnv(name) )
{
view->keyReturn();
view->insertText("\\item " );
if ( name == "description" )
{
view->insertText("\\item[]");
view->cursorLeft();
}
else
view->insertText("\\item ");
return;
}
else if ( m_latexCommands->isTabularEnv(name) || m_latexCommands->isMathEnv(name) )
@ -2331,14 +2340,15 @@ bool EditorExtension::insertDoubleQuotes()
Kate::View *view = determineView(0L);
if ( !view ) return true;
uint row,col;
view->cursorPositionReal(&row,&col);
Kate::Document *doc = view->getDoc();
if( doc && m_ki->extensions()->isTexFile(doc->url()) )
doc->removeSelectedText();
else
return false;
uint row,col;
view->cursorPositionReal(&row,&col);
// simply insert, if we are inside a verb command
if ( insideVerb(view) || insideVerbatim(view) )

7
src/kile/kilegrepdialog.cpp

@ -631,11 +631,8 @@ TQString KileGrepDialog::buildFilesCommand()
files_temp = filter_list[filter_combo->currentItem()];
else
files_temp = filter_combo->currentText();
if (files_temp.right(1) != ",")
files_temp = files_temp + ',';
TQStringList tokens = TQStringList::split ( ",", files_temp, false );
TQStringList tokens = TQStringList::split ( " ", files_temp, false );
TQStringList::Iterator it = tokens.begin();
if (it != tokens.end())
{