Skip to content

Commit

Permalink
Automatic group names are converted from LaTeX to Unicode (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus authored Aug 8, 2016
1 parent 7f9d1cd commit 086aa37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- The arXiv fetcher now also supports free-text search queries
- [#1345](https://github.com/JabRef/jabref/issues/1345) Cleanup ISSN
- It is now possible to add your own lists of protected terms, see Options -> Manage protected terms
- Automatically generated group names are now converted from LaTeX to Unicode

### Fixed
- Fixed [#1632](https://github.com/JabRef/jabref/issues/1632) User comments (@Comment) with or without brackets are now kept
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/sf/jabref/gui/groups/AutoGroupDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import net.sf.jabref.logic.groups.GroupsUtil;
import net.sf.jabref.logic.groups.KeywordGroup;
import net.sf.jabref.logic.l10n.Localization;
import net.sf.jabref.logic.layout.format.LatexToUnicodeFormatter;
import net.sf.jabref.model.entry.FieldName;

import com.jgoodies.forms.builder.ButtonBarBuilder;
Expand Down Expand Up @@ -120,8 +121,10 @@ public void actionPerformed(ActionEvent e) {
fieldText = FieldName.EDITOR;
}

LatexToUnicodeFormatter formatter = new LatexToUnicodeFormatter();

for (String keyword : hs) {
KeywordGroup group = new KeywordGroup(keyword, fieldText, keyword, false, false,
KeywordGroup group = new KeywordGroup(formatter.format(keyword), fieldText, keyword, false, false,
GroupHierarchyType.INDEPENDENT, Globals.prefs);
autoGroupsRoot.addChild(GroupTreeNode.fromGroup(group));
}
Expand Down

0 comments on commit 086aa37

Please sign in to comment.