From: SourceForge.net <no...@so...> - 2006-06-17 09:59:26
|
Patches item #1507349, was opened at 2006-06-16 16:59 Message generated for change (Settings changed) made by joergl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442888&aid=1507349&group_id=45430 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael J Gruber (michaeljgruber) >Assigned to: Jörg Lehmann (joergl) Summary: RFE: text along path Initial Comment: The attached diff implements typesetting of text along a path as a decorator (curvedtext). I put it in the bug tracker so that it doesn't get lost. It's a diff to r2824 (taking into account the reversal of trafos in canvas.py (r2728->r2730)). >From the docstring: """a text decorator for curved text - text: is typeset along the path to which this decorator is applied - relarclenpos: position for the base point of the text (default: 0) - arlenfrombegin, arclenfromend: alternative ways of specifying the position of the base point; use of relarclenpos, arclenfrombegin and arclenfromend is mutually exclusive - textattrs, texrunner: standard text arguments (defaults: [] resp None) """ Files touched aside from deco.py: dvifile.__init__() in dvifile.py gets a new parameter singlecharmode which defaults to 0; dvifile.putchar() switches to single character mode if set to 1. texrunner.__init__(), texrunner.finishdvi(), texrunner.text() and texrunner.textboxes() in text.py get the same parameter so that it can be passed from the texrunner to dvifile. curvedtext switches to singlecharmode only while it is needed. Basic idea for curvedtext goes back to schindmi, I think. ---------------------------------------------------------------------- >Comment By: Jörg Lehmann (joergl) Date: 2006-06-17 11:59 Message: Logged In: YES user_id=390410 Hello Michael, In principle I have nothing against this implementation. The only small things I noted are that our formating style is not followed everywhere (spaces are =), docstrings for the class in __init__, etc. And adding documentation would be nice too! Jörg PS: Not wanting to insist, but the idea and the implementation go back to me, although schindmi lost one afternoon of our precious worktime playing around with it, as well. ---------------------------------------------------------------------- Comment By: Michael J Gruber (michaeljgruber) Date: 2006-06-16 17:08 Message: Logged In: YES user_id=1454635 Attaching a simple example: It demonstrates how to achieve several orientations using text.halign.*, relarclenpos and path.reversed(); and how to set different stroke attributes on the text and the underlying path. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442888&aid=1507349&group_id=45430 |