Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwinkler committed Feb 20, 2024
2 parents 5c3a216 + 42dca01 commit a7f423f
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/.idea/
/textext/.cache.json
/textext/config.json
.DS_Store
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ went into the development of the project.
- Alexander Blinne
- Antonio Russo
- Brian Clarke
- dongguaguaguagua@github
- Florent Becker
- jocelynetienne@github
- Markus Wallerberger
Expand All @@ -25,6 +26,7 @@ went into the development of the project.
- Robert Szalai
- Rafal Kolanski
- Toru Araki
- user202729@github
- veltsov@github
- Vladislav Gavryusev
- xuestrange@github
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 1.10.2 (2024-02-20)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixed: Wrong environment inserted when `Display Math` option is selected
in `New Node Content` menu while typst is the active compiler (:Issue:`417`)

Version 1.10.1 (2023-11-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixed: Installation issue on Windows.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
|status-ci| |status-downloads|

TexText - A TeX extension for Inkscape
======================================
TexText - A TeX / typst extension for Inkscape
==============================================

TexText is a Python plugin for the vector graphics editor
`Inkscape <http://www.inkscape.org/>`__ providing the possibility to add
Expand Down
2 changes: 1 addition & 1 deletion build_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion pytests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion pytests/test_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion test_installation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion textext/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.1
1.10.2
2 changes: 1 addition & 1 deletion textext/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
17 changes: 10 additions & 7 deletions textext/asktext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down Expand Up @@ -298,7 +298,7 @@ def ask(self, callback, preview_callback=None):
self._tex_command_tk_str = Tk.StringVar()
self._tex_command_tk_str.set(self.current_texcmd)
box = Tk.Frame(box2, relief="groove", borderwidth=2)
label = Tk.Label(box, text="TeX command:")
label = Tk.Label(box, text="Command:")
label.pack(pady=2, padx=5, anchor="w")
for tex_command in self.TEX_COMMANDS:
Tk.Radiobutton(box, text=tex_command, variable=self._tex_command_tk_str,
Expand Down Expand Up @@ -626,7 +626,7 @@ def __init__(self, version_str, text, preamble_file, global_scale_factor, curren
{new_node_content}
</menu>
<menu action='CloseShortcut'>
{close_shortcut}
{close_shortcut}
</menu>
<menuitem action='ConfirmClose'/>
</menu>
Expand Down Expand Up @@ -963,7 +963,7 @@ def create_buttons(self):
button_box.add(self._cancel_button)

self._preview_button = Gtk.Button(label="Preview")
self._preview_button.set_tooltip_text("Show/ update preview (CTRL+P)")
self._preview_button.set_tooltip_text("LaTeX only: Show/ update preview (CTRL+P)")
button_box.add(self._preview_button)

self._ok_button = Gtk.Button(stock=Gtk.STOCK_SAVE)
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def create_window(self):

# --- Tex command ---
texcmd_frame = Gtk.Frame()
texcmd_frame.set_label("TeX command")
texcmd_frame.set_label("Command")
texcmd_box = Gtk.HBox(homogeneous=False, spacing=0)
texcmd_frame.add(texcmd_box)
texcmd_box.set_border_width(3)
Expand All @@ -1049,7 +1049,7 @@ def create_window(self):
self._texcmd_cbox.add_attribute(renderer_text, "text", 0)

self._texcmd_cbox.set_active(self.TEX_COMMANDS.index(self.current_texcmd))
self._texcmd_cbox.set_tooltip_text("TeX command used for compiling.")
self._texcmd_cbox.set_tooltip_text("Command used for compiling.")
texcmd_box.pack_start(self._texcmd_cbox, True, True, 5)

# --- Scaling ---
Expand Down Expand Up @@ -1270,7 +1270,10 @@ def create_window(self):
iter = self._source_buffer.get_iter_at_offset(1)
self._source_buffer.place_cursor(iter)
if new_node_content_value=='DisplayMath':
self.text = "$$$$"
if self.current_texcmd == "typst":
self.text = "$ $"
else:
self.text = "$$$$"
self._source_buffer.set_text(self.text)
iter = self._source_buffer.get_iter_at_offset(2)
self._source_buffer.place_cursor(iter)
Expand Down
6 changes: 3 additions & 3 deletions textext/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down Expand Up @@ -643,7 +643,7 @@ def stroke_to_path(self):
pass

def pdf_to_png(self, white_bg):
"""Convert the PDF file to a SVG file"""
"""Convert the PDF file to a PNG file"""
kwargs = dict()
kwargs["export_filename"] = self.tmp('png')
kwargs["pdf_poppler"] = True
Expand Down Expand Up @@ -696,7 +696,7 @@ class TexTextElement(inkex.Group):
def __init__(self, svg_filename, document_unit):
"""
:param svg_filename: The name of the file containing the svg-snippet
:param document_unit: String specifyling the unit of the document into which the node is going
:param document_unit: String specifying the unit of the document into which the node is going
to be placed ("mm", "pt", ...)
"""
super(TexTextElement, self).__init__()
Expand Down
2 changes: 1 addition & 1 deletion textext/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion textext/requirements_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion textext/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down
2 changes: 1 addition & 1 deletion textext/win_app_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file is part of TexText, an extension for the vector
illustration program Inkscape.
Copyright (c) 2006-2023 TexText developers.
Copyright (c) 2006-2024 TexText developers.
TexText is released under the 3-Clause BSD license. See
file LICENSE.txt or go to https://github.com/textext/textext
Expand Down

0 comments on commit a7f423f

Please sign in to comment.