clansco | 2 Jun 2011 11:46
Favicon

Re: bfinc highlighting

On Tue, 31 May 2011 21:55:32 +0200
Olivier Sessink <olivier@...> wrote:

> On 05/31/2011 05:09 PM, Olivier Sessink wrote:
> > On 05/28/2011 12:23 PM, Daniel Leidert wrote:
> >> Am Freitag, den 27.05.2011, 22:30 +0200 schrieb Olivier Sessink:
> >>> On 05/27/2011 04:48 PM, clansco wrote:
> >>>> Hi,
> >>>> mime-type application/x-bluefish-language2 (bluefish.xml.in) is
> >>>> for both *.bflang2 and *.bfinc
> >>>> but bflang2.bflang2 is strict, all tags in<definition><context>.
> >>>> Actually bfinc files are not highlighted.
> >>>> I have split bluefish.xml in:
> >>>> mime-type application/x-bluefish-language2 and
> >>>> mime-type application/x-bluefish-language2-include
> >>>> and create bfinc..bflang2.
> >>>>
> >>>> Can I commit ?
> >>>>
> >>>
> >>> if it works good, go ahead and commit!
> >>
> >> I highly disagree. ".bfinc" files are just bflang snippets and not
> >> separate files. They cannot have an own MIME type. (And JFTR: you
> >> won't be able to create a pattern for file-type recognition.)
> >> Better rename them to .bflang2 (like one would do with XML files)
> >> and check, if that fixes the issue. One probably needs to relax
> >> the bflang2 highlighting rules then.
> >
> > or: use "application/x-bluefish-language2" in the strict bflang
(Continue reading)

clansco | 4 Jun 2011 16:48
Favicon

Re: bfinc highlighting

On Thu, 2 Jun 2011 11:46:33 +0200
clansco <falsetti@...> wrote:

> On Tue, 31 May 2011 21:55:32 +0200
> Olivier Sessink <olivier@...> wrote:
> 
> > On 05/31/2011 05:09 PM, Olivier Sessink wrote:
> > > On 05/28/2011 12:23 PM, Daniel Leidert wrote:
> > >> Am Freitag, den 27.05.2011, 22:30 +0200 schrieb Olivier Sessink:
> > >>> On 05/27/2011 04:48 PM, clansco wrote:
> > >>>> Hi,
> > >>>> mime-type application/x-bluefish-language2 (bluefish.xml.in) is
> > >>>> for both *.bflang2 and *.bfinc
> > >>>> but bflang2.bflang2 is strict, all tags
> > >>>> in<definition><context>. Actually bfinc files are not
> > >>>> highlighted. I have split bluefish.xml in:
> > >>>> mime-type application/x-bluefish-language2 and
> > >>>> mime-type application/x-bluefish-language2-include
> > >>>> and create bfinc..bflang2.
> > >>>>
> > >>>> Can I commit ?
> > >>>>
> > >>>
> > >>> if it works good, go ahead and commit!
> > >>
> > >> I highly disagree. ".bfinc" files are just bflang snippets and
> > >> not separate files. They cannot have an own MIME type. (And
> > >> JFTR: you won't be able to create a pattern for file-type
> > >> recognition.) Better rename them to .bflang2 (like one would do
> > >> with XML files) and check, if that fixes the issue. One probably
(Continue reading)

clansco | 6 Jun 2011 11:07
Favicon

bflang2 context in group

Hi,
In bflang2 
<context><group><context> is not permitted

this structure appears as invalid:

<element pattern="{literal}" highlight="smarty-tag">
 <context symbols="}&gt;&lt;&amp;; &#9;&#10;&#13;">
  <group>
   <context symbols="}&gt;&lt;&amp;; &#9;&#10;&#13;" id="c.html">
    &all-html;
   </context>
  </group>
  <element pattern="{/literal}" ends_context="1"
highlight="smarty-tag" />
 </context>
</element>

but it works, it is permitted by relax description and 
I think it is the better solution to reuse include bfinc files.

Can I use it and add it in bflang2.bflang2

Regards,
ff

--

-- 
http://clansco.org
clansco | 6 Jun 2011 11:19
Favicon

Re: bflang2 context in group


Sorry, I was testing the wrong file.
It works but both bluefish and relax complain with errors.
Olivier Sessink | 6 Jun 2011 22:24
Picon
Gravatar

Re: bflang2 context in group

On 06/06/2011 11:07 AM, clansco wrote:
> Hi,
> In bflang2
> <context><group><context>  is not permitted

that is correct, <context> should contain only elements (and <tag> is a 
special case of element, and <group> is just a convenience tag so you 
can set an option once for many elements.

Remember that everything within one <context> is compiled into a single 
(regex-like) pattern. What do you expect that <context><group><context> 
should do?

Olivier
clansco | 7 Jun 2011 18:21
Favicon

Re: bflang2 context in group

On Mon, 06 Jun 2011 22:24:19 +0200
Olivier Sessink <olivier@...> wrote:

> On 06/06/2011 11:07 AM, clansco wrote:
> > Hi,
> > In bflang2
> > <context><group><context>  is not permitted
> 
> that is correct, <context> should contain only elements (and <tag> is
> a special case of element, and <group> is just a convenience tag so
> you can set an option once for many elements.
> 
> Remember that everything within one <context> is compiled into a
> single (regex-like) pattern. What do you expect that
> <context><group><context> should do?
> 
> Olivier
> -- 
> To unsubscribe from this list: send the line "unsubscribe
> bluefish-dev" in the body of a message to listar@... or
> visit the list control panel at
> http://www.ems.ru/cgi-bin/listargate.cgi Bluefish web site:
> http://bluefish.openoffice.nl/
> 
> 

I knew <group ref="myref"> is not allowed. It is that what I need.
I tried <context><group><context ref="myref">.

example from smarty.bflang2, but also needed for CSS mediawiki...
(Continue reading)

clansco | 10 Jun 2011 12:42
Favicon

regex search crash

Hi Olivier,
bf crash every time for me,
regex: </th>[^<]*</tr>
file: html5.bflang2_100611.txt

Regards,
ff

-- 
http://clansco.org
¤<a href="the-a-element.html#the-a-element" id="a_73">a</a></code></th>
<td>Hyperlink</td>
<td><a href="content-models.html#flow-content" id="flow-content_141" title="Flow content">flow</a>;
         <a href="content-models.html#phrasing-content" id="phrasing-content_162" title="Phrasing content">phrasing</a>*;
         <a href="content-models.html#interactive-content" id="interactive-content_20" title="Interactive content">interactive</a></td>
<td><a href="content-models.html#phrasing-content" id="phrasing-content_163" title="Phrasing content">phrasing</a></td>
<td><a href="content-models.html#transparent" id="transparent_14">transparent</a>*</td>
<td><a href="global-attributes.html#global-attributes" id="global-attributes_103" title="global attributes">globals</a>;
         <code title="attr-hyperlink-href"><a href="links.html#attr-hyperlink-href" id="href_29">href</a></code>;
         <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target" id="target_16">target</a></code>;
         <code title="attr-hyperlink-rel"><a href="links.html#attr-hyperlink-rel" id="rel_24">rel</a></code>;
         <code title="attr-hyperlink-media"><a href="links.html#attr-hyperlink-media" id="media_16">media</a></code>;
         <code title="attr-hyperlink-hreflang"><a href="links.html#attr-hyperlink-hreflang" id="hreflang_8">hreflang</a></code>;
         <code title="attr-hyperlink-type"><a href="links.html#attr-hyperlink-type" id="type_106">type</a></code></td>
<td><code><a href="the-a-element.html#htmlanchorelement" id="htmlanchorelement_0">HTMLAnchorElement</a></code></td>
</tr>¤<a href="the-abbr-element.html#the-abbr-element" id="abbr_14">abbr</a></code></th>
<td>Abbreviation</td>
<td><a href="content-models.html#flow-content" id="flow-content_142" title="Flow content">flow</a>;
(Continue reading)

clansco | 10 Jun 2011 12:56
Favicon

Re: regex search crash

On Fri, 10 Jun 2011 12:42:55 +0200
clansco <falsetti@...> wrote:

> Hi Olivier,
> bf crash every time for me,
> regex: </th>[^<]*</tr>
> file: html5.bflang2_100611.txt
> 

better regex: <td>[^<]+</td>
only occurrences without < inside are recognized
the crash happens if you try a second pass.

John Culleton | 23 Jun 2011 18:08
Gravatar

Kindle and Epub

I wonder if consideration has been given to enahncing Bluefish to enable Kindle and/or Epub outputs. Kindle uses a limited subset of xhtml tags. Epub is similar except there is some futher packaging of the main file plus an auxiliary file into a zip file, thus adding another layer of complication.

What I would recommend is a mode in Bluefish wherein those tags not legal for e.g., Kindle would be highlighted as errors.

--

John Culleton

"Death Wore Black" Police procedural: http://www.deathworeblack.com/

"Create Book Covers with Scribus"

http://booklocker.com/books/4055.html

Olivier Sessink | 23 Jun 2011 22:39
Picon
Gravatar

Re: regex search crash

On 06/10/2011 12:42 PM, clansco wrote:
> Hi Olivier,
> bf crash every time for me,
> regex:</th>[^<]*</tr>
> file: html5.bflang2_100611.txt
>

sorry for the late reply, I was on holiday.

it's fixed now, thanks for reporting.

Olivier

Gmane