-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create sensible default settings for "Enable save actions" and "Cleanup" dialogs #2051
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
67d35cb
Fixing: Sensible default settings for "Enable save actions" and "Clea…
motokito e3c0031
Sensible default settings for "Enable save actions" in database prope…
motokito 0a3d823
Insert allTextField fieldName and refactoring the reset entries of da…
motokito e209e5a
CHANGELOG Fixing
motokito d597ad9
Feedback
motokito 897fb9e
Create Recommend Button for BibTex and BibLatex and refactor reset bu…
motokito 704eca7
Refactoring:
motokito e4afabf
Refactoring_15102016_2343:
motokito 75497c1
Fix LocalizationConsistencyTest FAIL:
motokito c3dee55
Merge remote-tracking branch 'upstream/master' into cleanupDialogDefa…
motokito d18bbce
Refactoring:
motokito 5677942
add OrdinalsToSuperscriptFormatter to recommand button
motokito b15e7fa
Merge remote-tracking branch 'upstream/master' into cleanupDialogDefa…
motokito b593ced
REFACTORING_27102016_0744:
motokito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
import net.sf.jabref.logic.formatter.bibtexfields.NormalizeDateFormatter; | ||
import net.sf.jabref.logic.formatter.bibtexfields.NormalizeMonthFormatter; | ||
import net.sf.jabref.logic.formatter.bibtexfields.NormalizePagesFormatter; | ||
import net.sf.jabref.logic.formatter.bibtexfields.OrdinalsToSuperscriptFormatter; | ||
import net.sf.jabref.logic.formatter.bibtexfields.UnicodeToLatexFormatter; | ||
import net.sf.jabref.logic.layout.format.LatexToUnicodeFormatter; | ||
import net.sf.jabref.model.cleanup.FieldFormatterCleanup; | ||
|
@@ -35,7 +36,6 @@ public class Cleanups { | |
defaultFormatters.add(new FieldFormatterCleanup(FieldName.PAGES, new NormalizePagesFormatter())); | ||
defaultFormatters.add(new FieldFormatterCleanup(FieldName.DATE, new NormalizeDateFormatter())); | ||
defaultFormatters.add(new FieldFormatterCleanup(FieldName.MONTH, new NormalizeMonthFormatter())); | ||
// defaultFormatters.add(new FieldFormatterCleanup(FieldName.BOOKTITLE, new OrdinalsToSuperscriptFormatter())); | ||
DEFAULT_SAVE_ACTIONS = new FieldFormatterCleanups(false, defaultFormatters); | ||
|
||
List<FieldFormatterCleanup> recommendedBibTeXFormatters = new ArrayList<>(); | ||
|
@@ -46,12 +46,14 @@ public class Cleanups { | |
recommendedBibTeXFormatters.add(new FieldFormatterCleanup(FieldName.JOURNAL, new UnicodeToLatexFormatter())); | ||
recommendedBibTeXFormatters.add(new FieldFormatterCleanup(FieldName.AUTHOR, new UnicodeToLatexFormatter())); | ||
recommendedBibTeXFormatters.add(new FieldFormatterCleanup(FieldName.EDITOR, new UnicodeToLatexFormatter())); | ||
defaultFormatters.add(new FieldFormatterCleanup(FieldName.INTERNAL_ALL_TEXT_FIELDS_FIELD, new OrdinalsToSuperscriptFormatter())); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. its still "defaultFormatters" here instead of "recommendedBibTeXFormatters".... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done 😄 |
||
RECOMMEND_BIBTEX_ACTIONS = new FieldFormatterCleanups(false, recommendedBibTeXFormatters); | ||
|
||
List<FieldFormatterCleanup> recommendedBibLaTeXFormatters = new ArrayList<>(); | ||
recommendedBibLaTeXFormatters.addAll(defaultFormatters); | ||
recommendedBibLaTeXFormatters.add(new FieldFormatterCleanup(FieldName.TITLE, new HtmlToUnicodeFormatter())); | ||
recommendedBibLaTeXFormatters.add(new FieldFormatterCleanup(FieldName.INTERNAL_ALL_TEXT_FIELDS_FIELD, new LatexToUnicodeFormatter())); | ||
defaultFormatters.add(new FieldFormatterCleanup(FieldName.INTERNAL_ALL_TEXT_FIELDS_FIELD, new OrdinalsToSuperscriptFormatter())); | ||
RECOMMEND_BIBLATEX_ACTIONS = new FieldFormatterCleanups(false, recommendedBibLaTeXFormatters); | ||
} | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recommendedBibTeXFormatters instead of defaultFormatters (same below)