fmpp-open Mailing List for FMPP: FreeMarker-based File PreProcessor (Page 8)
Brought to you by:
ddekany
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(23) |
Aug
(4) |
Sep
(11) |
Oct
(7) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(2) |
Oct
(9) |
Nov
(2) |
Dec
|
2005 |
Jan
(2) |
Feb
(9) |
Mar
|
Apr
(1) |
May
|
Jun
(11) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2006 |
Jan
(2) |
Feb
(14) |
Mar
(4) |
Apr
|
May
(6) |
Jun
(7) |
Jul
(7) |
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
(3) |
2010 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Daniel D. <dd...@fr...> - 2003-07-19 15:07:43
|
Saturday, July 19, 2003, 4:49:26 PM, Ralf Hauser wrote: > Daniel, > > From a filename_en.jsp, I would like to extract the two language indicating > characters. > http://www.freemarker.org/docs/dgui_template_exp.html#dgui_template_exp_stri > ngop_sub doesn't really help if I probably have to count from the right or > do some regular expression pattern matching. For regular expression operations, see: ref_builtins_string.html > I thought > ${pp.sourceFile[-6..-5]} > might be it, but I got > << [fmpp] Caused by: java.lang.StringIndexOutOfBoundsException: String > index out of range: -6> > > Any thoughts, how I might best do this? Use the string length... ${pp.sourceFile[pp.sourceFile?length-6..pp.sourceFile?length-5]} If it is needed often, then define a function for it: <#function getLocalCode s> <#return s[s?length-6..s?length-5]> </#function> ... ${getLocaleCode(pp.sourceFile)} -- Best regards, Daniel Dekany |
From: Ralf H. <ral...@gm...> - 2003-07-19 14:47:35
|
Daniel, From a filename_en.jsp, I would like to extract the two language indicating characters. http://www.freemarker.org/docs/dgui_template_exp.html#dgui_template_exp_stri ngop_sub doesn't really help if I probably have to count from the right or do some regular expression pattern matching. I thought ${pp.sourceFile[-6..-5]} might be it, but I got << [fmpp] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -6> Any thoughts, how I might best do this? Have a nice WE! Ralf |
From: Ralf H. <ral...@gm...> - 2003-07-11 09:53:36
|
Looks good to me > Ah, damn Ant properties again... :) The problem in this case is > that you can't > get non-string properties out of Ant because there are *no* > non-string properties > in Ant (AFAIK...). Ant properties are, strings. So the additional > information, > that "this property wants to be a number", has to be told to FMPP > or FreeMarker > explicitly. I think I will extend the Ant property related data > loaders, so > this will be possible somehow... till that, write: > > > <#if CodeDebug?number > 0 > P.S.: Typically, I don't subscribe to mailing lists for more than a day or two because normally, the signal-to-noise ratio just is too low. Since most of the activity here is just you and me anyway, I am o.k. to follow your preference for now... |
From: Daniel D. <dd...@fr...> - 2003-03-19 17:22:49
|
Wednesday, March 19, 2003, 11:32:30 AM, Ralf Hauser wrote: > Daniel, > > Fine, I am happy use the mailing list Me too.. :) > (for threads once they are "rooted" in the tracker for said reason.) > > What is the below all about: > Since I am not using eclipse or alike, but I am of the old generation who > still likes RMS's emacs and also having not only lived in the programming > world all the time, I have submerged to Redmond, WA's 9?.* % market > domination of using windows, the purpose of the below was > > ************** > to provide some efficiency hints how to work with fmpp to generate html > (based on emacs, ant, ispell, cygwin, ...). > ************** > > I am happy to explain if the questions are a little bit more specific. The manual has a "Tips and best practices" chapter. If you have tips that are useful for emacs or cygwin users *in general*, then type them and that will be put into the Manual. Since I do not use emacs, ispell or cygwin (well, except if I run some UN*X->Win port as MySQL, but that's behind the scenes) I can't make comments on these topics. -- Best regards, Daniel Dekany |
From: Ralf H. <ral...@gm...> - 2003-03-19 10:29:29
|
Daniel, Fine, I am happy use the mailing list (for threads once they are "rooted" in the tracker for said reason.) What is the below all about: Since I am not using eclipse or alike, but I am of the old generation who still likes RMS's emacs and also having not only lived in the programming world all the time, I have submerged to Redmond, WA's 9?.* % market domination of using windows, the purpose of the below was ************** to provide some efficiency hints how to work with fmpp to generate html (based on emacs, ant, ispell, cygwin, ...). ************** I am happy to explain if the questions are a little bit more specific. Rgds Ralf > Feature Requests item #706162, was opened at 2003-03-19 10:45 > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=541456&aid=706162&group_id =74591 > > Category: None > Group: None > Status: Open > Priority: 5 > Submitted By: Ralf Hauser (ralfhauser) > >Assigned to: Dániel Dékány (ddekany) > Summary: provide link into build.xml in ant section and more > > Initial Comment: > One way to immediately beef up > http://fmpp.sourceforge.net/ant.html would be to link > into your build.xml > (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/fmpp/fmpp/build.x ml?rev=HEAD&content-type=text/xml) > > finally my convenience hints for > emacs-cygwin-cvs-ispell users: > 1) each *.ftl source file ends with > <#-- $Id: index.ftl,v 1.2 2003/03/19 08:02:56 ralf Exp $ --> > <#-- For emacs: --> > <#-- Local Variables: --> > <#-- fill-column: 70 --> > <#-- eval:(setq filename (substring buffer-file-name > (string-match "[a-zA-Z0-9_.]+$" buffer-file-name))) --> > <#-- eval:(setq basename (substring filename 0 > (string-match "\." filename))) --> > <#-- eval:(setq compile-command (concat "ant cygStart > -Dcygst_fil=" basename ".en.html") ) --> > <#-- eval:(setq hm--html-automatic-changed-comment nil) --> > <#-- eval:(setq hm--html-automatic-created-comment nil) --> > <#-- End: --> > <#-- > # LocalWords: fn twb passWordEvolutionPath INP WID > LINKTEN KEYDIR newUser plr > # LocalWords: forgotPw chall ppre notif reactiv > Notific Expir acc activ req > --> > > This results that with emacs' built-in compile menu the > ant target for the desired html output file gets > called. If I want the entire system compiled and not a > particular file, I just delete the "cygStart" out of > the minibuffer presented upon choosing the > emacs-compiling command... > > 2) build xml has the following target (matching the above) > <target name="cygStart" description="launches html > files if > -Dcygst_fil=filename is > provided on the command-line" > depends="fmppTarget" > > <exec executable="cygstart"> > <arg value="${dest_dir}/${cygst_fil}"/> > </exec> > <echo>showing content of > ${dest_dir}/${cygst_fil}</echo> > </target> > > obviously, for non cygwin users, the "cygstart" exe > could be replaced by Mozilla or alike > > ---------------------------------------------------------------------- > > >Comment By: Dániel Dékány (ddekany) > Date: 2003-03-19 11:14 > > Message: > Logged In: YES > user_id=546667 > > Huh? Sorry, I don't understand nothing... :) What's this whole thing > about? > > BTW, in general I would prefer if you use the mailing list. I > know Tracker entries can be useful, but it is damn uncomfortable and > sloooow to use this Web interface... So I would reserve trackers > for users > who do not want to subscribe to the list just to send some simple > requests/reports. |