Commit Graph

12176 Commits

Author SHA1 Message Date
Georg Baum
e0845a1e53 fix thinko
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17363 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 15:29:04 +00:00
Abdelrazak Younes
ba62665f96 * support/qstring_helpers.h: erase ucs4_to_qstring() method.
* FontMetrics.h: only one string width() method.

* Painter.h: only one text() method.

* all other files: adapt to above API change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 15:13:08 +00:00
Abdelrazak Younes
85f66bcd90 Fix support lib dependency problem.
* docstring.C: Implement utf8ToUcs4() locally.

* all other files: remove utf8ToUcs4().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17361 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 12:46:44 +00:00
Abdelrazak Younes
52eb91c94f add config.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17360 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 11:18:37 +00:00
Abdelrazak Younes
3f6021eaeb Add mention of CJK.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17359 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 11:03:37 +00:00
Georg Baum
8765ab59cd Almost fix 'make check'. The only remaining problem is an undefined
reference to lyx::utf8ToUcs4.
I did not fix this since it is an interface violation that should be fixed
otherwise.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 09:31:01 +00:00
Georg Baum
2655d46b03 fix 'make check' by removing useless namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17357 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 09:29:12 +00:00
Jean-Marc Lasgouttes
20bb4a911f typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17356 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 09:24:54 +00:00
Georg Baum
56eea075fd forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17355 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 09:03:58 +00:00
Georg Baum
0418d14704 Fix character classification functions by using qt (bugs like 3270 and 1247)
* src/support/lstrings.C
	(uppercase): Use qt instead of non working libc/home grown solution
	(lowercase): ditto
	(local_lowercase): Use qt instead of libc tolower for ucs4 chars

	* src/support/qstring_helpers.C
	(qstring_to_ucs4): Use qchar_to_ucs4 because of the assertion

	* src/support/lstrings.h: Add some documentation

	* src/support/qstring_helpers.h
	(is_utf16): New function: Tests whether an ucs4 character is also a
	valid utf16 character
	(qchar_to_ucs4): Assert on is_utf16()
	(ucs4_to_qchar): Replace old assertion with better is_utf16()

	* src/support/textutils.h
	(isLetterChar): Delete non-working implementation
	(isPrintable): Ditto
	(isPrintableNonspace): Ditto
	(isDigit):

	* src/support/textutils.C: New file, contains new implementations
	using qt of the functions in textutils.h

	* src/support/Makefile.am: Add textutils.C

	* development/scons/scons_manifest.py: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17354 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 09:03:21 +00:00
Bo Peng
070138899e Scons: fix installation of language directories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17353 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 05:52:36 +00:00
Jean-Marc Lasgouttes
cd4b6edc73 typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17351 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 22:18:13 +00:00
Lars Gullik Bjønnes
144e61bc10 Fix-up damage done by overeager script in r15422
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17348 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 21:17:24 +00:00
Jean-Marc Lasgouttes
23b59966c7 * lyx_cb.C (insertPlaintextFile): delete selection before insertion
and handle undo correctly (bug 3204)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17345 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 20:16:45 +00:00
Jean-Marc Lasgouttes
e5a46922e9 * GuiView.C (updateTab): do not update early if current tab has
changed (bug 3254)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17344 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 19:42:48 +00:00
Jean-Marc Lasgouttes
7dd29bb818 Move translated files to their own directory
What I did:

* move xx_foo.ext to xx/foo.ext

* update Makefile.am to make install work

* minimally update scons_manifest.py (I'd be surprised to see it
  work).

* update i18nLibFileSearch to use the new naming scheme, and keep
  temporarily some code that checks the old method.

* update image paths in .lyx files

* update name of files (examples in tutorial, for ex.) in lyx files

What is definitely broken:

* cmake (did not touch it)

* TOC files (I am not sure how the code works)

I would be surprised if nothing else was wrong. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17343 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 18:12:03 +00:00
Jean-Marc Lasgouttes
07aead5b21 Fix bug 3080
* src/paragraph.C (adjust_row_column): renamed from adjust_column_count;
	add texrow argument and adjust row as needed.
        (startTeXParParams, endTeXParParams, simpleTeXOnePar): adjust to above 
	changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17342 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 13:20:29 +00:00
Jean-Marc Lasgouttes
447c382829 update Hebrew translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17340 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 11:33:29 +00:00
Michael Schmitt
f6aad90641 when running msgfmt (from the gettext package), perform all checks and output statistics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17339 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 09:44:32 +00:00
Michael Schmitt
d6c60193d6 move plaintext() implementation to MathMacroTemplate.C;
support localization


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17338 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 09:27:11 +00:00
Georg Baum
914e698b8d * src/support/filetools.C
(makeLatexName): Exclude ", otherwise we would trigger the same
	problem of unbalanced quotes as in bug 3266


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 09:00:28 +00:00
Enrico Forestieri
dc61ab467a Fix bug 3233
* src/TextMetrics.C
	(TextMetrics::setHeightOfRow): correctly account for sectioning
	environments in order to add the topsep space before them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17335 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 23:58:16 +00:00
José Matox
13c6c959c9 Correct the name of Portuguese and Brazilian variants of Portuguese language, fix bug 1627
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 23:43:18 +00:00
Joost Verburg
fce3a8c36e updated dependency package
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 23:10:46 +00:00
Jean-Marc Lasgouttes
883e83c8e0 make the code to avoid multiple warnings actually work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 22:54:19 +00:00
Georg Baum
b555834103 Fix bug 3266
* src/support/filetools.C
	(makeLatexName): Don't set the 8th bit of characters to 0.
	This is not needed anymore, since we don't use isalpha() anymore,
	but a whitelist of allowed characters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 20:51:05 +00:00
Georg Baum
bd02196f4d convert to utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17330 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 19:42:28 +00:00
Jean-Marc Lasgouttes
6a9ec37d39 update man page for 1.5 (part of bug 2694)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17329 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 18:01:53 +00:00
Georg Baum
87289f4d20 remove unused includes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17328 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 18:00:42 +00:00
Georg Baum
2de83b4598 move plaintext output of math macros where it belongs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17327 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 18:00:13 +00:00
Georg Baum
5576b516c4 fix copy/paste error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17326 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 17:52:26 +00:00
Georg Baum
0419779ef9 fix compiler warnings about unused parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 17:18:13 +00:00
Michael Schmitt
77afb934da * po/*.po: remerge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17324 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 17:13:47 +00:00
Michael Schmitt
8b177d7446 * src/insets/insetbox.C: plaintext(): add missing \n
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17323 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:54:11 +00:00
Michael Schmitt
5abd0edd59 * README.po-files: rename file for the unexperienced translator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17322 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:34:41 +00:00
Michael Schmitt
3816111b03 * README.po-files: reformat file, fix spelling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17321 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:32:12 +00:00
Michael Schmitt
2594fa86ac * README.po-files: add a few more words
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17320 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:24:08 +00:00
Michael Schmitt
597d0e2146 * src/mathed/InsetMath.C: plaintext(): assert that this
method is never invoked (and tell why)
	* src/mathed/InsetMathFormulaMacro.C:
	* src/mathed/InsetMathHull.C: plaintext(): fix return value
	(= number of output characters)
	* src/mathed/InsetMathFormulaMacro.h
	* src/mathed/InsetMathHull.h: WS changes
	* src/mathed/InsetMathDim.C: implement plaintext() for math macros
	and add a FIXME that this code shouldn't needed!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17319 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:06:04 +00:00
Uwe Stöhr
74aced7791 readme.po-files: updates by Pavel Sanda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17318 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 14:55:19 +00:00
Michael Schmitt
6ab7047f3a * insets/*.C: constify docstring in plaintext()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 14:35:38 +00:00
Uwe Stöhr
d8f4881926 New readme file about po-files, written by Ran Rutenberg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17316 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 14:14:10 +00:00
Uwe Stöhr
1761cccf91 fix wrong tooltip, bug 3273:
http://bugzilla.lyx.org/show_bug.cgi?id=3273

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 01:40:59 +00:00
Uwe Stöhr
a1ae86964b de_Tutorial.lyx: Updates from Hartmut Haase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17314 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 00:40:14 +00:00
Georg Baum
0c26507890 * lib/encodings: Explain that only single byte encodings can be
added easily

	* src/encoding.C
	(Encoding::Encoding): Better test for utf8


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 20:13:06 +00:00
Georg Baum
3a64f157b7 * src/insets/insetbox.C
(InsetBox::validate): Don't require the calc package anymore for
	pure minipages (as it was done in 1.3.x)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 18:39:54 +00:00
Joost Verburg
5ea7978b9d missing Python file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17310 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 15:40:48 +00:00
Abdelrazak Younes
48ab3bd01e * InsetMathMBox.h:
- encapsulate within MATH_MBOX macro.
  - implement default constructor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 08:27:03 +00:00
Abdelrazak Younes
36f6966af7 * InsetMathMBox: cleanup in order to avoid Buffer and BufferView dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 08:10:13 +00:00
Abdelrazak Younes
986786c1c1 * mathed/CMakeLists.txt: do not exclude InsetMathMBox.C
* InsetMathMBox.C: Make it compile.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17307 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 21:17:34 +00:00
Bo Peng
e8c63241d7 Fix bug 3238. Table cells should be treated differently because of separate table selection buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17306 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 17:55:22 +00:00