W4L Help content and a bugfix
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@47 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
5a8dcceea2
commit
ccc8741301
11 changed files with 456 additions and 133 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2010-02-19)
|
||||
* Version 1.2 (2010-02-26)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class ConverterFactory {
|
|||
|
||||
// Version information
|
||||
private static final String VERSION = "1.1.1";
|
||||
private static final String DATE = "2010-02-19";
|
||||
private static final String DATE = "2010-02-26";
|
||||
|
||||
/** Return version information
|
||||
* @return the Writer2LaTeX version in the form
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2009 by Henrik Just
|
||||
* Copyright: 2002-2010 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2009-09-24)
|
||||
* Version 1.2 (2010-02-26)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -235,10 +235,12 @@ public final class ConverterPalette extends ConverterBase {
|
|||
createMeta("author",metaData.getCreator(),declarations);
|
||||
// According to the spec, the date has the format YYYY-MM-DDThh:mm:ss
|
||||
String sDate = metaData.getDate();
|
||||
if (sDate.length()==19 && sDate.charAt(10)=='T') {
|
||||
sDate = sDate.substring(0,10);
|
||||
if (sDate!=null) {
|
||||
if (sDate.length()==19 && sDate.charAt(10)=='T') {
|
||||
sDate = sDate.substring(0,10);
|
||||
}
|
||||
createMeta("date",sDate,declarations);
|
||||
}
|
||||
createMeta("date",sDate,declarations);
|
||||
}
|
||||
|
||||
// Create options for documentclass
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2009 by Henrik Just
|
||||
* Copyright: 2002-2010 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2009-09-05)
|
||||
* Version 1.2 (2010-02-26)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -504,11 +504,14 @@ public class Converter extends ConverterBase {
|
|||
// Insert the actual meta data
|
||||
createMeta("DC.title",metaData.getTitle());
|
||||
// DC.subject actually contains subject+keywords, so we merge them
|
||||
String sDCSubject = metaData.getSubject();
|
||||
if (metaData.getSubject().length()>0 && metaData.getKeywords().length()>0) {
|
||||
sDCSubject+=", ";
|
||||
String sDCSubject = "";
|
||||
if (metaData.getSubject()!=null && metaData.getSubject().length()>0) {
|
||||
sDCSubject = metaData.getSubject();
|
||||
}
|
||||
if (metaData.getKeywords()!=null && metaData.getKeywords().length()>0) {
|
||||
if (sDCSubject.length()>0) { sDCSubject+=", "; }
|
||||
sDCSubject += metaData.getKeywords();
|
||||
}
|
||||
sDCSubject+=metaData.getKeywords();
|
||||
createMeta("DC.subject",sDCSubject);
|
||||
createMeta("DC.description",metaData.getDescription());
|
||||
createMeta("DC.creator",metaData.getCreator());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue