I am currently taking an ancient Latin class.
Latin, in modern text, makes use of macron ( bars over letters ).
The best way to render these glyphs, I have found, is to use the
glyphs-description in the LaTeX set, e.g. \={u} produces a little u
with a bar over it.
Typing in 5 strokes just to produce that glyph is pretty painful, so i
wrote a bundle called "Latin Student". The bulk of of these features
were along the lines of ^u producing the aforegiven LaTeX set.
1. Is there any guide on how i could export this? A place where I
could check this and other ancillary notions like "linify based on ';'
prefixed by numbers"
2. Is there any interest in thinking about building a larger bundle
which could serve many Languages or non-Latin glyphsets
Valete,
Steven
Hi,
For what it's worth I just tried Hans-Joerg's "Save As..." command and it
worked exactly as expected: the steps involved were pretty minimal, but
maybe something got missed along the way?
(1) Download the "Save" file from Hans-Joerg's message.
(2) Change the extension to ".tmcommand", so the file name reads "
Save.tmcommand".
(3) Double click the newly named beast.
(4) Full steam ahead... using command-shift-s produced a byte-for-byte copy,
but also left me editing the original file.
Odd,
Paul
Hi.
I began working on a bundle to support google's ajax api, http://code.google.com/apis/ajax/
Currently I've implemented most of google maps, which is what I use
the most, but if anyone else is interested in implementing the other
APIs (search and feed), feel free.
Any feature requests or bug reports are welcome (with or without
patches)
I also plan on adding support for the pure maps API where everything
is prefixed with G or G_, but not sure if that should go into its own
bundle or not.
Regards,
Peter Haza
Hi!
For a long time I'm using the auto-completion of the LaTeX-bundle. I
have a bib-file with 290 entries and I want to use the auto-completion
of the bundle, soon after pressing escape for auto-completion there
are 3 ruby-processes in activity monitor to be seen that take up
altogether 180% of the processor (dual core ;) ) and no
auto-completion happens.
What can I do to track down and solve the problem?
Niels
I can't for the life of me figure out why this isn't working in my language
file, can someone help?
Thanks,
Steven
Sample text to search:
----snip------
<cffunction name="isEmpty" returnType="boolean" access="private"
hint="checks to see whether a field is empty">
<cfargument name="inputField" type="string" required="true" hint="the
input">
<cfset retBool = true />
<cfif Len(Trim(arguments.inputField))>
<cfset retBool = false />
</cfif>
<cfreturn retBool />
</cffunction>
-----snip-----
regex that works when using "find" inside TM:
<cffunction\sname=(["'])
bundle language text:
{ name = 'support.other';
contentName = 'entity.name.function';
begin = '(<cffunction\sname).(["''])';
end = '["'']';
},
--
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] 267-482-4364
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
Hello 'Mates,
I'm working on a bundle (my first!) to alphabetize css attributes, as
described by Garrett Dimon here:
http://www.digital-web.com/articles/architecting_css/
I whipped up some 'working' (as in, it works on a 2000+ line CSS file
I threw it at) code here, which has some obvious problems. Here are
the key parts, all in PHP:
[code]
function find_rule()
{
global $input, $nOffset;
$nStart = strpos($input,'{',$nOffset);
if ( $nStart === false ) return false;
$nEnd = strpos($input,'}',$nStart);
$nOffset = $nEnd;
$nLen = $nEnd - $nStart + 1;
$aReturn[] = $nStart;
$aReturn[] = $nLen;
// return an array containing the start index and length of the next
rule
return $aReturn;
}
function alphabetize_rule($sRule)
{
preg_match_all('/[^:\s]*:[^;}]*;?/',$sRule,$aProps);
sort($aProps[0],SORT_STRING);
$sRule = implode(' ',$aProps[0]);
$sRule = '{ '.$sRule.' }';
return $sRule;
}
?>
[/code]
The problems, that I can see anyway, are in the regular expressions,
since a CSS rule can contain URLs and URLs can legitimately contain
both un-escaped semi-colons and I think even curly brackets. I can
spend a bit more time on those to search for '(' and ')' and allow
those characters between, so that's fine.
My real question is if anyone has any thoughts about managing the
whitespace that separates the rules. Generally I write CSS all on one
line, and my code will return attributes separated by spaces. Ideally
I'd like it to respect how the coder has written their CSS already,
leaving any newlines and indentation in place.
Does anyone have any thoughts on how best to do this? Do you think
this bundle would be useful?
Many thanks for any feedback.
Pete
Hi
Is there any string we can add somewhere in a document such that TM
recognizes it and sets the correctly spelling dictionary?
Basically, everytime I change from a PT to EN document (or vice-versa)
I need to change the spelling language.
Thanks for any hint.
Cheers
--
Alberto Simões
This is a bit off topic, but I have added a word count command to TextMate
for Latex using texWordCount.pl as described here
http://markelikalderon.com/blog/2007/12/30/latex-and-word-count-revisited/
This raised two questions.
1. Is there a "good practice" place to put such snippets of code, and
2. I put it in ~Library/Application Support/Textmate/Code
Adding the "Code" folder to the existing directory tree.
But this led me to a new problem in that I couldn't work out how to get that
directory tree found when trying to run the code. In Windows, because of
the space in "Application Support" I would gve the full and wrap it in
quotes, but the cmbinations I tried failed to work.
At the moment, I have created a new folder ~Library/TextMate for the script
and the word count seem to work well, it also picks up possible errors in
your latex code, but I haven't investigated that yet. A google search
confirms the need to use quotes, but I can't find an illustration of exactly
where these quotes go.
Some help would be gratefully received.
Thanks,
Graham
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am new to Textmate so maybe I just don't know if this already exists.
When I have a project I can set bookmarks. This is fine but it would be
nice if it would be possible to not only set bookmarks but to set
a) Bookmarks of different type (maybe color)
b) Add comments to bookmarks (annotations)
And aside from that it would be nice to be able to set a specific type
of bookmark (selected color) for results of the current search.
So it this already on the feature list, is it planned? or is it possible
to create a plugin that supports this feature. (I have more features in
my head but that for sure need a plugin)
Greetings,
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfQ+XEACgkQSuF5XhWr2njsPACgqcaQsMhNcAuXV4IhWl8VU7JQ
/mgAn3rQ5RjE7qTzbdMLfIjVi1yHxfmA
=CIxT
-----END PGP SIGNATURE-----