It is currently July 27th, 2024, 3:07 am

Problem with ' visualization in gmail parser

Get help with creating, editing & fixing problems with skins
COcis
Posts: 10
Joined: May 5th, 2010, 1:42 am

Problem with ' visualization in gmail parser

Post by COcis »

Greetings,

Basically i modified the enigma GMAIL READER.
I didn't changed too much in the parser section (just added a switch between messages to all the script! thx kenzo) and i'm getting a visualization problem with the ' , wich is displayed like a "'". ES: "L' Interfaccia" is displayed as "' Interfaccia".
Should i use a substitute command? but the & isn't exactly an & it has the upper part cutted, and i don't know how to reproduce that kind of character...

Experts of parsing , pls we need some help :D, i hope it's a simple known issue...



Here is the code im using, change GmailUsername GmailPassword to get it working:
[Gmail]

[Rainmeter]
AppVersion=1001000
Update=100


;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
;@include=#SKINSPATH#Enigma\Resources\Variables\UserVariables.inc
GmailUsername=******
GmailPassword=*****
Height2=20
Height3=20

NUMBER1=1
Max=3
Title1=

SubstituteFeed="Fwd:":""
; ------------------------------------------------------------------------------------------------
; MEASURES

[Gmail]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://#GmailUsername#:#GmailPassword#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>.*<title.*>(.*)</title>.*<link.*href="(.*)".*<entry.*<title.*>(.*)</title>.*<link.*href="(.*)"(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")(?(?=.*<entry>).*<title.*>(.*)</title>.*<link.*href="(.*)")"
UpdateRate=1000
StringIndex=1

[MeasureNumber]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=1
UpdateRate=1

;[MeasureNewMail]
;Measure=CALC
;Formula=MeasureNumber>0

[MeasureItem11]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=2
Substitute=#SubstituteFeed#

[MeasureLink11]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=3
Substitute=#SubstituteLink#

---

[MeasureItem21]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=4
Substitute=#SubstituteFeed#

[MeasureLink12]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=5
Substitute=#SubstituteLink#

---

[MeasureItem31]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=6
Substitute=#SubstituteFeed#

[MeasureLink13]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=7
Substitute=#SubstituteLink#

---

[MeasureItem12]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=8
Substitute=#SubstituteFeed#

[MeasureLink21]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=9
Substitute=#SubstituteLink#

---

[MeasureItem22]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=10
Substitute=#SubstituteFeed#

[MeasureLink22]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=11
Substitute=#SubstituteLink#

---

[MeasureItem32]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=12
Substitute=#SubstituteFeed#

[MeasureLink23]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=13
Substitute=#SubstituteLink#

---

[MeasureItem13]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=14
Substitute=#SubstituteFeed#

[MeasureLink31]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=15
Substitute=#SubstituteLink#

---

[MeasureItem23]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=16
Substitute=#SubstituteFeed#

[MeasureLink32]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=17
Substitute=#SubstituteLink#

---

[MeasureItem33]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=18
Substitute=#SubstituteFeed#

[MeasureLink34]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Gmail]
StringIndex=19
Substitute=#SubstituteLink#

;===========Switch===============

[FORWARD]
Measure=Calc
Formula=(#NUMBER1#+1)%#MAX#=0?#MAX#:(#NUMBER1#+1)%#MAX#
DynamicVariables=1

[MeasureExecuteUpdate]
Measure=Calc
Formula=Counter %120
IfAboveAction=!Execute [!RainmeterSetVariable NUMBER1 [FORWARD]]
IfAboveValue=0

[Title1]
Measure=Calc
Formula=#Number1#
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterSetVariable Title1 #Feed1#][!RainmeterRedraw]
DynamicVariables=1

[Title2]
Measure=Calc
Formula=#Number1#
IfEqualValue=2
IfEqualAction=!Execute [!RainmeterSetVariable Title1 #Feed2#][!RainmeterRedraw]
DynamicVariables=1

[Title3]
Measure=Calc
Formula=#Number1#
IfEqualValue=3
IfEqualAction=!Execute [!RainmeterSetVariable Title1 #Feed3#][!RainmeterRedraw]
DynamicVariables=1
; ------------------------------------------------------------------------------------------------
; STYLES

[StyleItem]
X=2
Y=15r
H=140
W=620
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
AntiAlias=1

[StyleLink]
X=r
Y=r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#ColorActive#
FontSize=#Height2#
FontFace=
AntiAlias=1
Hidden=1

; ------------------------------------------------------------------------------------------------
; METERS




[TitleActive]
H=150
W=1500
Meter=STRING
MeterStyle=Title
FontColor=#ColorActive#
Hidden=1
;LeftMouseUpAction=!Execute ["http://mail.google.com/"][!RainmeterHideMeter TitleActive][!RainmeterShowMeter Title][!RainmeterRedraw]

[TitleDesc]
H=150
W=1500
Meter=STRING
MeasureName=MeasureNumber
X=33r
Y=r
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height3#
FontFace=#Font#
AntiAlias=1
Text="| %1 RICEVUTI"



;-----------------------
; ITEMS
;+++++++CUBO X BUG PIXELS
[MeterBackground]
Meter=Image
W=640
H=440
X=0
Y=0
SolidColor=0,0,0,120


[Feed1]
Meter=STRING
MeterStyle=StyleItem
;StringStyle=Bold
;FontColor=#Color1#
;FontSize=#Height2#
;FontFace=Defused
;StringEffect=Border
;FontEffectColor=#Border1#
;Solidcolor=#Solidcolor2#
Text=[MeasureItem#NUMBER1#1]
;DynamicVariables=1
;AntiAlias=1
;Text=[MeasureItem11]
DynamicVariables=1

[Feed2]
Meter=STRING
X=r
Y=140r
MeterStyle=StyleItem
;FontEffectColor=#Border2#
Text=[MeasureItem#NUMBER1#2]
;MouseOverAction=!execute [!RainmeterSetVariable Border2 0,0,0,25][!RainmeterRedraw]
;MouseLeaveAction=!execute [!RainmeterSetVariable Border2 0,0,0,10][!RainmeterRedraw]
;LeftMouseDownAction=!Execute ["[MeasureLink#NUMBER1#2]"]
DynamicVariables=1

[Feed3]
Meter=STRING
X=r
Y=140r
MeterStyle=StyleItem
;FontEffectColor=#Border3#
Text=[MeasureItem#NUMBER1#3]
DynamicVariables=1
;-----------------------
; BORDER2

[Border2]
Meter=IMAGE
MeterStyle=Border
Y=25r
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: PROBLEM WITH ' VISUALIZATION IN GMAIL PARSER

Post by dragonmage »

COcis
Posts: 10
Joined: May 5th, 2010, 1:42 am

Re: Problem with ' visualization in gmail parser

Post by COcis »

Thx for great and fast response! Sry for late Thanks , but i retook rainmeter in my hands just now.

Great tool!

Greetings